Fix display of last scheduled check

This commit is contained in:
Jamie Cameron
2019-04-20 12:08:31 -07:00
parent f3762aec93
commit 52a93bb9d0

View File

@@ -39,9 +39,11 @@ if (@serv) {
@serv = sort { $oldstatus{$a->{'id'}} <=> $oldstatus{$b->{'id'}} } @serv;
}
if (!$config{'index_status'} && $oldstatus) {
local @st = stat("$module_config_directory/oldstatus");
local $t = localtime($st[9]);
print &text('index_oldtime', $t),"<br>\n";
local @st = stat($oldstatus_file);
if (@st) {
local $t = &make_date($st[9]);
print &text('index_oldtime', $t),"<br>\n";
}
}
# Show table of defined monitors