Add endlessly better graphs filling and positioning

This commit is contained in:
Ilia Ross
2025-01-21 01:31:43 +02:00
parent 5d31698099
commit dd4ae09642

View File

@@ -378,10 +378,13 @@ if (@hours) {
push(@cols, $k);
}
my $bar = sprintf
"<img src=images/blue.gif width=%d height=10>",
"<span style='display: flex;'>".
"<img src=images/blue.gif width=%d% ".
"height=10>",
$max ? int($width * $icount{$k}/$max)+1 : 1;
$bar .= sprintf
"<img src=images/red.gif width=%d height=10>",
"<img src=images/red.gif width=%d% ".
"height=10></span>",
$max ? int($width * $ocount{$k}/$max)+1 : 1;
push(@cols, $bar);
push(@cols, &nice_size($icount{$k}),