Rounding values

This commit is contained in:
Axel 2021-12-28 12:52:02 +01:00
parent fccf7bf165
commit fc6f36ce3a
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View file

@ -277,8 +277,8 @@
xaxis.push(new Date(date).getTime()) xaxis.push(new Date(date).getTime())
if (total > 0) { if (total > 0) {
new_data_a.push( stats[date]['up'] / total * 100 ) new_data_a.push( Math.round(stats[date]['up'] / total * 100) )
new_data_b.push( stats[date]['down'] / total * 100 ) new_data_b.push( Math.round(stats[date]['down'] / total * 100) )
} }
else { else {
new_data_a.push( 0 ) new_data_a.push( 0 )