From e7372d18a1a661d8c3dba9f51e1f17b5f94171a7 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Wed, 10 Jan 2024 11:17:08 +0100 Subject: New upstream version 3.3.0 --- DateTimeMeter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'DateTimeMeter.c') diff --git a/DateTimeMeter.c b/DateTimeMeter.c index 1044ff3..dcd85ea 100644 --- a/DateTimeMeter.c +++ b/DateTimeMeter.c @@ -13,8 +13,8 @@ in the source distribution for its full text. #include #include "CRT.h" +#include "Machine.h" #include "Object.h" -#include "ProcessList.h" static const int DateTimeMeter_attributes[] = { @@ -22,10 +22,10 @@ static const int DateTimeMeter_attributes[] = { }; static void DateTimeMeter_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); int year = lt->tm_year + 1900; if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) { this->total = 366; -- cgit v1.2.3