summaryrefslogtreecommitdiffstats
path: root/ClockMeter.c
diff options
context:
space:
mode:
Diffstat (limited to 'ClockMeter.c')
-rw-r--r--ClockMeter.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ClockMeter.c b/ClockMeter.c
index 79bdecd9..38f0591f 100644
--- a/ClockMeter.c
+++ b/ClockMeter.c
@@ -1,7 +1,7 @@
/*
htop - ClockMeter.c
(C) 2004-2011 Hisham H. Muhammad
-Released under the GNU GPLv2, see the COPYING file
+Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
@@ -13,8 +13,8 @@ in the source distribution for its full text.
#include <sys/time.h>
#include "CRT.h"
+#include "Machine.h"
#include "Object.h"
-#include "ProcessList.h"
static const int ClockMeter_attributes[] = {
@@ -22,10 +22,10 @@ static const int ClockMeter_attributes[] = {
};
static void ClockMeter_updateValues(Meter* this) {
- const ProcessList* pl = this->pl;
+ const Machine* host = this->host;
struct tm result;
- const struct tm* lt = localtime_r(&pl->realtime.tv_sec, &result);
+ const struct tm* lt = localtime_r(&host->realtime.tv_sec, &result);
this->values[0] = lt->tm_hour * 60 + lt->tm_min;
strftime(this->txtBuffer, sizeof(this->txtBuffer), "%H:%M:%S", lt);
}