summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoît Dejean <bdejean@src.gnome.org>2005-07-23 00:01:11 +0000
committerBenoît Dejean <bdejean@src.gnome.org>2005-07-23 00:01:11 +0000
commit164502700446cd65fe1437949ad73eaf5132b772 (patch)
tree2480a4280bb78d6b9ce95bda5c9f302babc08bb0
parent8e656af0607291d6904503d40e979e702630a605 (diff)
downloadlibgtop-164502700446cd65fe1437949ad73eaf5132b772.tar.gz
Fixed .flags.
* uptime.c: Fixed .flags.
-rw-r--r--sysdeps/linux/ChangeLog6
-rw-r--r--sysdeps/linux/uptime.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/sysdeps/linux/ChangeLog b/sysdeps/linux/ChangeLog
index 60f03ce3..83fb8bb2 100644
--- a/sysdeps/linux/ChangeLog
+++ b/sysdeps/linux/ChangeLog
@@ -1,3 +1,9 @@
+2005-07-23 Benoît Dejean <TazForEver@dlfp.org>
+
+ * uptime.c:
+
+ Fixed .flags.
+
2005-07-22 Benoît Dejean <TazForEver@dlfp.org>
* glibtop_private.c: (get_page_size):
diff --git a/sysdeps/linux/uptime.c b/sysdeps/linux/uptime.c
index a87c153c..a725470a 100644
--- a/sysdeps/linux/uptime.c
+++ b/sysdeps/linux/uptime.c
@@ -30,7 +30,9 @@
#include <time.h>
static const unsigned long _glibtop_sysdeps_uptime =
-(1L << GLIBTOP_UPTIME_UPTIME) + (1L << GLIBTOP_UPTIME_IDLETIME);
+ (1UL << GLIBTOP_UPTIME_UPTIME) \
++ (1UL << GLIBTOP_UPTIME_IDLETIME) \
++ (1UL << GLIBTOP_UPTIME_BOOT_TIME);
/* Init function. */