fixed typecasting

This commit is contained in:
Unbit
2013-10-18 18:46:17 +02:00
parent f462792c8e
commit 4452c30fc8
+1 -1
View File
@@ -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;