# | Line 54 | Line 54 | EOT; | |
---|---|---|
54 | ||
55 | ||
56 | # show a bar-represented value. | |
57 | < | function showBar($title, $value, $max, $units, $input) { |
57 | > | function showBar($title, $value, $max, $units, $input, $arrange='normal') { |
58 | ||
59 | include("latest_config.inc.php"); | |
60 | ||
# | Line 68 | Line 68 | function showBar($title, $value, $max, $units, $input) | |
68 | } | |
69 | if (empty($value) || empty($max)) { | |
70 | return; | |
71 | + | } |
72 | + | |
73 | + | if ($arrange == 'swap') { |
74 | + | $value = $max - $value; |
75 | } | |
76 | ||
77 | $width = intval($max_width * $value / $max); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |