mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Properly format 95th CDR as SI Mbps in billing (#10444)
This commit is contained in:
		@@ -191,7 +191,7 @@ if ($vars['view'] == 'edit' && LegacyAuth::user()->hasGlobalAdmin()) {
 | 
			
		||||
            $type = '&95th=yes';
 | 
			
		||||
?>
 | 
			
		||||
        <td>
 | 
			
		||||
            <?php echo format_si($rate_95th) ?> of <?php echo format_si($cdr).'bps ('.$percent.'%)' ?> (95th%ile)
 | 
			
		||||
            <?php echo format_si($rate_95th).'bps' ?> of <?php echo format_si($cdr).'bps ('.$percent.'%)' ?> (95th%ile)
 | 
			
		||||
        </td>
 | 
			
		||||
        <td style="width: 210px;">
 | 
			
		||||
            <?php echo print_percentage_bar(200, 20, $percent, null, 'ffffff', $background['left'], $percent.'%', 'ffffff', $background['right']) ?>
 | 
			
		||||
@@ -200,7 +200,7 @@ if ($vars['view'] == 'edit' && LegacyAuth::user()->hasGlobalAdmin()) {
 | 
			
		||||
        <tr>
 | 
			
		||||
            <td colspan="2">
 | 
			
		||||
<?php
 | 
			
		||||
            echo 'Predicted usage: ' . format_bytes_billing(getPredictedUsage($bill_data['bill_day'], $bill_data['rate_95th']));
 | 
			
		||||
            echo 'Predicted usage: ' . format_si(getPredictedUsage($bill_data['bill_day'], $bill_data['rate_95th'])).'bps';
 | 
			
		||||
?>
 | 
			
		||||
            </td>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user