freebsd-ports/sysutils/gkrelltop/files/patch-gkrelltop.c
Pawel Pekala 058eff382b - 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>
2013-11-01 21:42:34 +00:00

18 lines
803 B
C

--- 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));
}