diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2019-03-11 17:31:59 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2019-03-11 17:31:59 +0300 |
commit | 22de5fcddfacd8d241ae2926125e0151b9e6e651 (patch) | |
tree | 5bb98bf2ed915b3ac59b32737f827c7ff6812724 /src/nxt_port_memory.c | |
parent | dccb4cf3548724fbec993c5bb83edf928d0b23bf (diff) | |
download | unit-22de5fcddfacd8d241ae2926125e0151b9e6e651.tar.gz unit-22de5fcddfacd8d241ae2926125e0151b9e6e651.tar.bz2 |
Style.
Diffstat (limited to 'src/nxt_port_memory.c')
-rw-r--r-- | src/nxt_port_memory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_port_memory.c b/src/nxt_port_memory.c index 774f1f33..b908041c 100644 --- a/src/nxt_port_memory.c +++ b/src/nxt_port_memory.c @@ -49,10 +49,10 @@ nxt_port_mmap_at(nxt_port_mmaps_t *port_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; } } |