mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Don't display INF% for percentage of used transfer when billing is CDR (#10446)
This commit is contained in:
		@@ -42,7 +42,11 @@ if ($bill_data['bill_type'] == 'quota') {
 | 
			
		||||
 | 
			
		||||
$total['ave'] = format_bytes_billing(($bill_data['total_data'] / $cur_days));
 | 
			
		||||
$total['est'] = format_bytes_billing(($bill_data['total_data'] / $cur_days * $total_days));
 | 
			
		||||
$total['per'] = round(($bill_data['total_data'] / $bill_data['bill_quota'] * 100), 2);
 | 
			
		||||
if ($bill_data['bill_type'] == 'quota') {
 | 
			
		||||
    $total['per'] = round(($bill_data['total_data'] / $bill_data['bill_quota'] * 100), 2);
 | 
			
		||||
} else {
 | 
			
		||||
    $total['per'] = round(($bill_data['total_data'] / ($bill_data['total_data'] / $cur_days * $total_days) * 100), 2);
 | 
			
		||||
}
 | 
			
		||||
$total['bg']  = get_percentage_colours($total['per']);
 | 
			
		||||
 | 
			
		||||
$in['data']  = format_bytes_billing($bill_data['total_data_in']);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user