diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-12-18 12:22:39 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-12-18 12:22:39 +0000 |
commit | 349c2db632fa4969ee11d4d0bfb2cab78d5051b8 (patch) | |
tree | d7ed1767cede222100a36c6752d0dd12c14f800c /src/sysmon | |
parent | 9470dc898e89d7c45ae977bac5754932fbe3140d (diff) | |
download | gnunet-349c2db632fa4969ee11d4d0bfb2cab78d5051b8.tar.gz gnunet-349c2db632fa4969ee11d4d0bfb2cab78d5051b8.zip |
- format
Diffstat (limited to 'src/sysmon')
-rw-r--r-- | src/sysmon/test_glibtop_process.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/sysmon/test_glibtop_process.c b/src/sysmon/test_glibtop_process.c index 0fcb1f46d..8af9941b1 100644 --- a/src/sysmon/test_glibtop_process.c +++ b/src/sysmon/test_glibtop_process.c | |||
@@ -73,18 +73,18 @@ static void print_pids(guint64 which, guint64 arg) | |||
73 | /* get memory info */ | 73 | /* get memory info */ |
74 | glibtop_get_proc_mem (&proc_mem, pids[i]); | 74 | glibtop_get_proc_mem (&proc_mem, pids[i]); |
75 | printf ("\tMemory information:\n"); | 75 | printf ("\tMemory information:\n"); |
76 | printf ("\t%-50s: %lu\n", "total # of pages of memory", proc_mem.size); | 76 | printf ("\t%-50s: %llu\n", "total # of pages of memory", (long long unsigned int) proc_mem.size); |
77 | printf ("\t%-50s: %lu\n", "number of pages of virtual memory",proc_mem.vsize); | 77 | printf ("\t%-50s: %llu\n", "number of pages of virtual memory", (long long unsigned int) proc_mem.vsize); |
78 | printf ("\t%-50s: %lu\n", "number of resident set", proc_mem.resident); | 78 | printf ("\t%-50s: %llu\n", "number of resident set", (long long unsigned int) proc_mem.resident); |
79 | printf ("\t%-50s: %lu\n", "number of pages of shared (mmap'd) memory", proc_mem.share); | 79 | printf ("\t%-50s: %llu\n", "number of pages of shared (mmap'd) memory", (long long unsigned int) proc_mem.share); |
80 | printf ("\t%-50s: %lu\n", "resident set size", proc_mem.rss); | 80 | printf ("\t%-50s: %llu\n", "resident set size", (long long unsigned int) proc_mem.rss); |
81 | 81 | ||
82 | /* get time info */ | 82 | /* get time info */ |
83 | glibtop_get_proc_time (&proc_time, pids[i]); | 83 | glibtop_get_proc_time (&proc_time, pids[i]); |
84 | printf ("\tTime information:\n"); | 84 | printf ("\tTime information:\n"); |
85 | printf ("\t%-50s: %lu\n", "real time accumulated by process", proc_time.rtime); | 85 | printf ("\t%-50s: %llu\n", "real time accumulated by process", (long long unsigned int) proc_time.rtime); |
86 | printf ("\t%-50s: %lu\n", "user-mode CPU time accumulated by process",proc_time.utime); | 86 | printf ("\t%-50s: %llu\n", "user-mode CPU time accumulated by process", (long long unsigned int) proc_time.utime); |
87 | printf ("\t%-50s: %lu\n", "kernel-mode CPU time accumulated by process", proc_time.stime); | 87 | printf ("\t%-50s: %llu\n", "kernel-mode CPU time accumulated by process", (long long unsigned int) proc_time.stime); |
88 | } | 88 | } |
89 | 89 | ||
90 | if (NULL != pids) | 90 | if (NULL != pids) |