Skip to content

Commit

Permalink
round yTotal for display (missed that)
Browse files Browse the repository at this point in the history
  • Loading branch information
claus committed Jun 19, 2015
1 parent 49897bf commit deb8354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/javascript/components/ResultsDetail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var ResultsDetail = React.createClass({
var timeDelta = ((i > 0) ? Math.round((item.time - doc.events[i - 1].time) * 1000) / 1000 : 0).toFixed(3);
var y = Math.round(item.y);
var yDelta = (i > 0) ? y - Math.round(doc.events[i - 1].y) : 0;
yTotal += item.y;
yTotal += y;
return (
<tr key={Math.round(item.time * 1000)}>
<td>{time}</td>
Expand Down

0 comments on commit deb8354

Please sign in to comment.