summaryrefslogtreecommitdiff
path: root/sysutils/gkrelltop/files/patch-gkrelltop.c
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2013-11-01 21:42:34 +0000
committerPawel Pekala <pawel@FreeBSD.org>2013-11-01 21:42:34 +0000
commit058eff382bdaf03a022b233af12bed778b292b21 (patch)
treedc12db74cd4fc2215704811cffe217eeb0c2239c /sysutils/gkrelltop/files/patch-gkrelltop.c
parentFix the build of audio/gstreamer1-plugins-modplug on 10.0+ by removing (diff)
- Update to version 2.2.13
- Add LICENSE - Switch to PLIST_FILES - Support staging - Remove Author tag from pkg-descr PR: ports/181059 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Notes
Notes: svn path=/head/; revision=332412
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));
+ }