diff options
Diffstat (limited to 'DateTimeMeter.c')
-rw-r--r-- | DateTimeMeter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/DateTimeMeter.c b/DateTimeMeter.c index 1044ff39..d46f3cb2 100644 --- a/DateTimeMeter.c +++ b/DateTimeMeter.c @@ -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; |