mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Add endlessly better graphs filling and positioning
This commit is contained in:
@@ -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}),
|
||||
|
||||
Reference in New Issue
Block a user