Permalink
Browse files

Fix rounding of float percent completion

  • Loading branch information...
1 parent 719e6f8 commit bd3c3225919c4cd021ed3924b19172373bb5c924 @sagemintblue committed Apr 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 contrib/iris/client/js/iris.js
View
2 contrib/iris/client/js/iris.js
@@ -247,7 +247,7 @@ function buildTaskString(total, progress) {
if (total == null || progress == null) {
return ''
}
- return total + ' (' + progress * 100 + '%)'
+ return total + ' (' + d3.round(progress * 100, 0) + '%)'
}
/**

0 comments on commit bd3c322

Please sign in to comment.