mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	BUG - correcting size and non significant zeroes (#9575)
This commit is contained in:
		@@ -627,7 +627,7 @@ function format_si($value, $round = '2', $sf = '3')
 | 
			
		||||
        $value = $value * -1;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return number_format(round($value, $round), $sf, '.', '').$ext;
 | 
			
		||||
    return (number_format(round($value, $round), $sf, '.', '')+0)." ".$ext;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function format_bi($value, $round = '2', $sf = '3')
 | 
			
		||||
@@ -646,8 +646,7 @@ function format_bi($value, $round = '2', $sf = '3')
 | 
			
		||||
    if ($neg) {
 | 
			
		||||
        $value = $value * -1;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return number_format(round($value, $round), $sf, '.', '').$ext;
 | 
			
		||||
    return (number_format(round($value, $round), $sf, '.', '')+0)." ".$ext;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function format_number($value, $base = '1000', $round = 2, $sf = 3)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user