aboutsummaryrefslogtreecommitdiffstats
path: root/DateMeter.c
diff options
context:
space:
mode:
Diffstat (limited to 'DateMeter.c')
-rw-r--r--DateMeter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/DateMeter.c b/DateMeter.c
index 9628596..0bdb30a 100644
--- a/DateMeter.c
+++ b/DateMeter.c
@@ -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 DateMeter_attributes[] = {
@@ -22,10 +22,10 @@ static const int DateMeter_attributes[] = {
};
static void DateMeter_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_yday;
int year = lt->tm_year + 1900;
if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy