Skip to content

Commit

Permalink
Bugfix: fixed issues/137, issues/98 that maxSize in cacheZones is dis…
Browse files Browse the repository at this point in the history
…played incorrectly
  • Loading branch information
vozlt committed Jan 25, 2021
1 parent c16aa0e commit 549cc4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ngx_http_vhost_traffic_status_module.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "ngx_http_vhost_traffic_status_string.h"
#include "ngx_http_vhost_traffic_status_node.h"

#define NGX_HTTP_VTS_MODULE_VERSION "0.1.19.dev.7c3ecb9"
#define NGX_HTTP_VTS_MODULE_VERSION "0.1.19.dev.c16aa0e"

#define NGX_HTTP_VHOST_TRAFFIC_STATUS_UPSTREAM_NO 0
#define NGX_HTTP_VHOST_TRAFFIC_STATUS_UPSTREAM_UA 1
Expand Down
2 changes: 1 addition & 1 deletion src/ngx_http_vhost_traffic_status_shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ ngx_http_vhost_traffic_status_shm_add_node_cache(ngx_http_request_t *r,
}

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

} else {
ngx_shmtx_lock(&cache->shpool->mutex);
Expand Down

0 comments on commit 549cc4d

Please sign in to comment.