Skip to content

Commit

Permalink
fix comparisons of previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
vergoh committed Apr 28, 2019
1 parent 394e95e commit d4e8ae7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dbshow.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/image.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d4e8ae7

Please sign in to comment.