summaryrefslogtreecommitdiffstats
path: root/base/process_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/process_util.h')
-rw-r--r--base/process_util.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/base/process_util.h b/base/process_util.h
index a368698..cf4bd01 100644
--- a/base/process_util.h
+++ b/base/process_util.h
@@ -478,16 +478,14 @@ class ProcessMetrics {
int64 last_time_;
int64 last_system_time_;
-#if defined(OS_LINUX)
- // Jiffie count at the last_time_ we updated.
- int last_cpu_;
-#endif
-
#if defined(OS_MACOSX)
// Queries the port provider if it's set.
mach_port_t TaskForPid(ProcessHandle process) const;
PortProvider* port_provider_;
+#elif defined(OS_POSIX)
+ // Jiffie count at the last_time_ we updated.
+ int last_cpu_;
#endif
DISALLOW_EVIL_CONSTRUCTORS(ProcessMetrics);