summaryrefslogtreecommitdiffstats
path: root/kicker-applets/ktimemon/sample.h
diff options
context:
space:
mode:
authorOBATA Akio <[email protected]>2022-01-11 18:51:50 +0900
committerOBATA Akio <[email protected]>2022-01-11 18:51:50 +0900
commitb50af4cbafd5ac24aa48d8cd0dcb38b940ff658c (patch)
treecfae549be7bcb3d81576a3092165f49de0918e4b /kicker-applets/ktimemon/sample.h
parentecd978360d79ba71df598f372be65cc1c0e34d80 (diff)
downloadtdeaddons-b50af4cbafd5ac24aa48d8cd0dcb38b940ff658c.tar.gz
tdeaddons-b50af4cbafd5ac24aa48d8cd0dcb38b940ff658c.zip
kicker-applets: Add NetBSD support for KTimemonfeat/ktimemon-netbsd
Signed-off-by: OBATA Akio <[email protected]>
Diffstat (limited to 'kicker-applets/ktimemon/sample.h')
-rw-r--r--kicker-applets/ktimemon/sample.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/kicker-applets/ktimemon/sample.h b/kicker-applets/ktimemon/sample.h
index 6ebe77d..e01965f 100644
--- a/kicker-applets/ktimemon/sample.h
+++ b/kicker-applets/ktimemon/sample.h
@@ -47,10 +47,12 @@ public:
void fill(unsigned scale); // fill sample with some fake values
};
+#ifdef __linux__
struct MemStats {
const char *name;
unsigned long *stat;
};
+#endif
KSample(KTimeMon *timemon, bool autoScale, unsigned pageScale,
unsigned swapScale, unsigned ctxScale);
@@ -83,10 +85,15 @@ private:
#if defined(USE_SOLARIS) || defined(__osf__)
unsigned long pagesPerMB;
#endif
+#ifdef __NetBSD__
+ int pg_to_mb_shift;
+#endif
Sample sample, oldSample;
unsigned pageScale, swapScale, cxScale;
bool autoscale;
+#ifdef __linux__
struct MemStats memstats[7];
+#endif
};
#endif // SAMPLE_H