summaryrefslogtreecommitdiff
path: root/sysutils/gkrelltop/files/patch-gkrelltop.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/gkrelltop/files/patch-gkrelltop.c')
-rw-r--r--sysutils/gkrelltop/files/patch-gkrelltop.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/sysutils/gkrelltop/files/patch-gkrelltop.c b/sysutils/gkrelltop/files/patch-gkrelltop.c
new file mode 100644
index 000000000000..dba2704e373d
--- /dev/null
+++ b/sysutils/gkrelltop/files/patch-gkrelltop.c
@@ -0,0 +1,18 @@
+--- gkrelltop.c.orig
++++ gkrelltop.c
+@@ -354,6 +354,7 @@
+ if(pluginMode == cpu)
+ snprintf(tmp,sizeof(tmp), "%d: %4.1f%c %6.2d %.30s%c",
+ i+1, best[i]->amount, '%', best[i]->pid, best[i]->name, ch);
++#if defined(LINUX)
+ else if(pluginMode == mem)
+ snprintf(tmp,sizeof(tmp), "%d: %4.1f%c %6.2dMB %6.2d %.30s%c",
+ i+1, best[i]->amount, '%', best[i]->rss/MEG,
+@@ -365,6 +366,7 @@
+ (float)(best[i]->io_read - best[i]->previous_io_read)/KIL,
+ (float)(best[i]->io_write - best[i]->previous_io_write)/KIL,
+ best[i]->pid, best[i]->name, ch);
++#endif
+
+ strncat(g_tooltip_text,tmp,sizeof(g_tooltip_text)-strlen(g_tooltip_text));
+ }