Fix log byte counts

This commit is contained in:
Bigard Florian 2017-09-04 09:04:06 +02:00 committed by GitHub
parent 79167fea9f
commit 828a72f374

View File

@ -59,8 +59,8 @@
do { do {
// Better in Kb or Mb // Better in Kb or Mb
$received = ($data['log_received'] > 100000) ? $data['log_received']/100000 . " Mo" : $data['log_received']/100 . " Ko"; $received = ($data['log_received'] > 1000000) ? $data['log_received']/1000000 . " Mo" : $data['log_received']/1000 . " Ko";
$sent = ($data['log_send'] > 100000) ? $data['log_send']/100000 . " Mo" : $data['log_send']/100 . " Ko"; $sent = ($data['log_send'] > 1000000) ? $data['log_send']/1000000 . " Mo" : $data['log_send']/1000 . " Ko";
// We add to the array the new line of logs // We add to the array the new line of logs
array_push($list, array( array_push($list, array(