diff --git a/monitorix.cgi b/monitorix.cgi index ae31b85..3616dec 100755 --- a/monitorix.cgi +++ b/monitorix.cgi @@ -477,12 +477,14 @@ EOF } } $title =~ s/ / /g; + my $twhen = $tf{nwhen} > 1 ? "$tf{nwhen} $tf{twhen}" : $tf{twhen}; + $twhen .= "s" if $tf{nwhen} > 1; print("   $title  \n"); print(" \n"); print(" \n"); print(" \n"); print(" \n"); - print("   last $tf{twhen}  \n"); + print("   last $twhen  \n"); print(" \n"); print(" \n"); print(" \n");