Fix uptime plot legend alignment for large values.

This commit is contained in:
Andreas Bachlechner 2022-10-19 18:27:36 +02:00
parent 5f4a9a29cb
commit 8549551dda
1 changed files with 6 additions and 6 deletions

View File

@ -1570,15 +1570,15 @@ sub process_cgi {
if(lc(($process->{time_unit} || "") eq "minute")) {
$ytitle = "Minutes";
$unit = 60;
$format = "%5.0lf";
$format = "%7.0lf";
} elsif(lc(($process->{time_unit} || "") eq "hour")) {
$ytitle = "Hours";
$unit = 3600;
$format = "%4.0lf";
$format = "%7.0lf";
} else {
$ytitle = "Days";
$unit = 86400;
$format = "%4.1lf";
$format = "%7.1lf";
}
for($n = 0; $n < 10; $n++) {
my $p = trim($lp[$n] || "");