Skip to content

Commit

Permalink
RB-28726: fix event time comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Kirichenko committed Apr 10, 2020
1 parent abd49a7 commit 3c7be4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ngx_http_graphite_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -2740,7 +2740,7 @@ ngx_http_graphite_timer_handler(ngx_event_t *ev) {

ngx_shmtx_lock(&shpool->mutex);

if ((ngx_uint_t)(ts - storage->event_time) * 1000 < gmcf->frequency) {
if ((ts - storage->event_time) * 1000 < (int)gmcf->frequency) {
ngx_shmtx_unlock(&shpool->mutex);
if (!(ngx_quit || ngx_terminate || ngx_exiting))
ngx_add_timer(ev, gmcf->frequency);
Expand Down

0 comments on commit 3c7be4b

Please sign in to comment.