mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix screenos memory
git-svn-id: http://www.observium.org/svn/observer/trunk@2485 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -271,10 +271,13 @@ STATE;
|
||||
|
||||
function print_percentage_bar($width, $height, $percent, $left_text, $left_colour, $left_background, $right_text, $right_colour, $right_background)
|
||||
{
|
||||
|
||||
if($percent > "100") { $size_percent = "100"; } else { $size_percent = $percent; }
|
||||
|
||||
$output = '
|
||||
<div style="font-size:11px;">
|
||||
<div style=" width:'.$width.'px; height:'.$height.'px; background-color:#'.$right_background.';">
|
||||
<div style="width:'.$percent.'%; height:'.$height.'px; background-color:#'.$left_background.'; border-right:0px white solid;"></div>
|
||||
<div style="width:'.$size_percent.'%; height:'.$height.'px; background-color:#'.$left_background.'; border-right:0px white solid;"></div>
|
||||
<div style="vertical-align: middle;height: '.$height.'px;margin-top:-'.($height).'px; color:#'.$left_colour .'; padding-left :4px;"><b>'.$left_text.'</b></div>
|
||||
<div style="vertical-align: middle;height: '.$height.'px;margin-top:-'.($height).'px; color:#'.$right_colour.'; padding-right:4px;text-align:right;"><b>'.$right_text.'</b></div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user