gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r25524 - gnunet/src/sysmon


From: gnunet
Subject: [GNUnet-SVN] r25524 - gnunet/src/sysmon
Date: Tue, 18 Dec 2012 13:22:39 +0100

Author: wachs
Date: 2012-12-18 13:22:39 +0100 (Tue, 18 Dec 2012)
New Revision: 25524

Modified:
   gnunet/src/sysmon/test_glibtop_process.c
Log:
- format


Modified: gnunet/src/sysmon/test_glibtop_process.c
===================================================================
--- gnunet/src/sysmon/test_glibtop_process.c    2012-12-17 19:11:19 UTC (rev 
25523)
+++ gnunet/src/sysmon/test_glibtop_process.c    2012-12-18 12:22:39 UTC (rev 
25524)
@@ -73,18 +73,18 @@
         /* get memory info */
         glibtop_get_proc_mem (&proc_mem, pids[i]);
         printf ("\tMemory information:\n");
-        printf ("\t%-50s: %lu\n", "total # of pages of memory", proc_mem.size);
-        printf ("\t%-50s: %lu\n", "number of pages of virtual 
memory",proc_mem.vsize);
-        printf ("\t%-50s: %lu\n", "number of resident set", proc_mem.resident);
-        printf ("\t%-50s: %lu\n", "number of pages of shared (mmap'd) memory", 
proc_mem.share);
-        printf ("\t%-50s: %lu\n", "resident set size", proc_mem.rss);
+        printf ("\t%-50s: %llu\n", "total # of pages of memory", (long long 
unsigned int) proc_mem.size);
+        printf ("\t%-50s: %llu\n", "number of pages of virtual memory", (long 
long unsigned int) proc_mem.vsize);
+        printf ("\t%-50s: %llu\n", "number of resident set", (long long 
unsigned int) proc_mem.resident);
+        printf ("\t%-50s: %llu\n", "number of pages of shared (mmap'd) 
memory", (long long unsigned int) proc_mem.share);
+        printf ("\t%-50s: %llu\n", "resident set size", (long long unsigned 
int) proc_mem.rss);
 
         /* get time info */
         glibtop_get_proc_time (&proc_time, pids[i]);
         printf ("\tTime information:\n");
-        printf ("\t%-50s: %lu\n", "real time accumulated by process", 
proc_time.rtime);
-        printf ("\t%-50s: %lu\n", "user-mode CPU time accumulated by 
process",proc_time.utime);
-        printf ("\t%-50s: %lu\n", "kernel-mode CPU time accumulated by 
process", proc_time.stime);
+        printf ("\t%-50s: %llu\n", "real time accumulated by process", (long 
long unsigned int) proc_time.rtime);
+        printf ("\t%-50s: %llu\n", "user-mode CPU time accumulated by 
process", (long long unsigned int) proc_time.utime);
+        printf ("\t%-50s: %llu\n", "kernel-mode CPU time accumulated by 
process", (long long unsigned int) proc_time.stime);
     }
 
     if (NULL != pids)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]