diff --git a/core/metrics.c b/core/metrics.c index c110a38f..62eab475 100644 --- a/core/metrics.c +++ b/core/metrics.c @@ -361,7 +361,7 @@ static void *uwsgi_metrics_loop(void *arg) { metric->last_update = now; } else { - if (now - metric->last_update < metric->freq) goto next; + if ((uint32_t) (now - metric->last_update) < metric->freq) goto next; } uwsgi_wlock(uwsgi.metrics_lock); int64_t value = *metric->value;