Rounding values
This commit is contained in:
parent
fccf7bf165
commit
fc6f36ce3a
2 changed files with 3 additions and 3 deletions
File diff suppressed because one or more lines are too long
|
@ -277,8 +277,8 @@
|
|||
|
||||
xaxis.push(new Date(date).getTime())
|
||||
if (total > 0) {
|
||||
new_data_a.push( stats[date]['up'] / total * 100 )
|
||||
new_data_b.push( stats[date]['down'] / total * 100 )
|
||||
new_data_a.push( Math.round(stats[date]['up'] / total * 100) )
|
||||
new_data_b.push( Math.round(stats[date]['down'] / total * 100) )
|
||||
}
|
||||
else {
|
||||
new_data_a.push( 0 )
|
||||
|
|
Loading…
Add table
Reference in a new issue