From d4e8ae747e75830bba71b499cfd3ce304bcc1a5c Mon Sep 17 00:00:00 2001 From: Teemu Toivola Date: Sun, 28 Apr 2019 14:49:11 +0300 Subject: [PATCH] fix comparisons of previous commit --- src/dbshow.c | 2 +- src/image.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dbshow.c b/src/dbshow.c index 7da5ffe..96df355 100644 --- a/src/dbshow.c +++ b/src/dbshow.c @@ -465,7 +465,7 @@ void showlist(const interfaceinfo *interface, const char *listname, const char * } else if (listtype == 5) { // hour e_secs = (uint64_t)(d->tm_sec + (d->tm_min * 60)); } else if (listtype == 6) { // 5min - if ((&interface->updated - ((uint64_t)&interface->updated % 300)) == (&datalist_i->timestamp - ((uint64_t)&datalist_i->timestamp % 300))) { + if ((interface->updated - (interface->updated % 300)) == (datalist_i->timestamp - (datalist_i->timestamp % 300))) { e_secs = (uint64_t)(d->tm_sec + (d->tm_min % 5 * 60)); } else { e_secs = 300; diff --git a/src/image.c b/src/image.c index 60cd9a9..e72355e 100644 --- a/src/image.c +++ b/src/image.c @@ -703,7 +703,7 @@ void drawlist(IMAGECONTENT *ic, const char *listname) } else if (listtype == 5) { // hour e_secs = (uint64_t)(d->tm_sec + (d->tm_min * 60)); } else if (listtype == 6) { // 5min - if ((&ic->interface.updated - ((uint64_t)&ic->interface.updated % 300)) == (&datalist_i->timestamp - ((uint64_t)&datalist_i->timestamp % 300))) { + if ((ic->interface.updated - (ic->interface.updated % 300)) == (datalist_i->timestamp - (datalist_i->timestamp % 300))) { e_secs = (uint64_t)(d->tm_sec + (d->tm_min % 5 * 60)); } else { e_secs = 300; -- 2.40.0