Skip to content

Commit 549cc4d

Browse files
committed
Bugfix: fixed issues/137, issues/98 that maxSize in cacheZones is displayed incorrectly
1 parent c16aa0e commit 549cc4d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ngx_http_vhost_traffic_status_module.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include "ngx_http_vhost_traffic_status_string.h"
1717
#include "ngx_http_vhost_traffic_status_node.h"
1818

19-
#define NGX_HTTP_VTS_MODULE_VERSION "0.1.19.dev.7c3ecb9"
19+
#define NGX_HTTP_VTS_MODULE_VERSION "0.1.19.dev.c16aa0e"
2020

2121
#define NGX_HTTP_VHOST_TRAFFIC_STATUS_UPSTREAM_NO 0
2222
#define NGX_HTTP_VHOST_TRAFFIC_STATUS_UPSTREAM_UA 1

src/ngx_http_vhost_traffic_status_shm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ ngx_http_vhost_traffic_status_shm_add_node_cache(ngx_http_request_t *r,
247247
}
248248

249249
if (init == NGX_HTTP_VHOST_TRAFFIC_STATUS_NODE_NONE) {
250-
vtsn->stat_cache_max_size = (ngx_atomic_uint_t) (cache->max_size * cache->bsize);
250+
vtsn->stat_cache_max_size = (ngx_atomic_uint_t) cache->shm_zone->shm.size;
251251

252252
} else {
253253
ngx_shmtx_lock(&cache->shpool->mutex);

0 commit comments

Comments
 (0)