summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_unit.c
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2019-03-11 17:31:59 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2019-03-11 17:31:59 +0300
commit22de5fcddfacd8d241ae2926125e0151b9e6e651 (patch)
tree5bb98bf2ed915b3ac59b32737f827c7ff6812724 /src/nxt_unit.c
parentdccb4cf3548724fbec993c5bb83edf928d0b23bf (diff)
downloadunit-22de5fcddfacd8d241ae2926125e0151b9e6e651.tar.gz
unit-22de5fcddfacd8d241ae2926125e0151b9e6e651.tar.bz2
Style.
Diffstat (limited to '')
-rw-r--r--src/nxt_unit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_unit.c b/src/nxt_unit.c
index 6339aec5..88c7fa6a 100644
--- a/src/nxt_unit.c
+++ b/src/nxt_unit.c
@@ -1946,10 +1946,10 @@ nxt_unit_mmap_at(nxt_unit_mmaps_t *mmaps, uint32_t i)
while (i + 1 > cap) {
if (cap < 16) {
- cap = cap * 2;
+ cap = cap * 2;
} else {
- cap = cap + cap / 2;
+ cap = cap + cap / 2;
}
}