1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
$NetBSD: patch-ad,v 1.10 2001/09/10 08:23:19 skrll Exp $
--- kcontrol/info/memory.cpp.orig Fri Jul 23 22:56:59 1999
+++ kcontrol/info/memory.cpp
@@ -30,6 +30,23 @@
freeMem->setAutoResize(TRUE);
freeMem->setFont(courierFont);
+#ifdef __NetBSD__
+ activeMem = new QLabel(klocale->translate("Active memory"), this);
+ activeMem->move(STARTX,STARTY+2*DY);
+ activeMem->setAutoResize(TRUE);
+ activeMem = new QLabel("0k", this);
+ activeMem->move(STARTX2,STARTY+2*DY);
+ activeMem->setAutoResize(TRUE);
+ activeMem->setFont(courierFont);
+
+ inactiveMem = new QLabel(klocale->translate("Inactive memory"), this);
+ inactiveMem->move(STARTX,STARTY+3*DY);
+ inactiveMem->setAutoResize(TRUE);
+ inactiveMem = new QLabel("0k", this);
+ inactiveMem->move(STARTX2,STARTY+3*DY);
+ inactiveMem->setAutoResize(TRUE);
+ inactiveMem->setFont(courierFont);
+#else
sharedMem = new QLabel(i18n("Shared memory"), this);
sharedMem->move(STARTX,STARTY+2*DY);
sharedMem->setAutoResize(TRUE);
@@ -45,6 +62,7 @@
bufferMem->move(STARTX2,STARTY+3*DY);
bufferMem->setAutoResize(TRUE);
bufferMem->setFont(courierFont);
+#endif
swapMem = new QLabel(i18n("Swap memory"), this);
swapMem->move(STARTX,STARTY+5*DY);
@@ -88,6 +106,8 @@
#include "memory_sgi.cpp"
#elif __FreeBSD__
#include "memory_fbsd.cpp"
+#elif __NetBSD__
+#include "memory_netbsd.cpp"
#elif hpux
#include "memory_hpux.cpp"
#else
|