From 4452c30fc835fecd440fa3038de55db4d041e9b3 Mon Sep 17 00:00:00 2001 From: Unbit Date: Fri, 18 Oct 2013 18:46:17 +0200 Subject: [PATCH] fixed typecasting --- core/metrics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;