From e73c8194a06f03d453fe62e7cc6b1c314ae3f397 Mon Sep 17 00:00:00 2001 From: "roberto@voldemort" Date: Mon, 28 Jun 2010 10:37:46 +0200 Subject: [PATCH] 64 bit fixes [2] --- logging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logging.c b/logging.c index 54faa64c..a3759fdc 100644 --- a/logging.c +++ b/logging.c @@ -121,7 +121,7 @@ void get_memusage() { int i; procfile = fopen("/proc/self/stat", "r"); if (procfile) { - i = fscanf(procfile, "%*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %llu %lld", &uwsgi.workers[uwsgi.mywid].vsz_size, &uwsgi.workers[uwsgi.mywid].rss_size); + i = fscanf(procfile, "%*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %llu %lld", (unsigned long long *) &uwsgi.workers[uwsgi.mywid].vsz_size, (unsigned long long *) &uwsgi.workers[uwsgi.mywid].rss_size); if (i != 2) { uwsgi_log( "warning: invalid record in /proc/self/stat\n"); }