Skip to content

Commit

Permalink
Change pricision to 10th of sec on result page. #38
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuNls committed Jul 7, 2015
1 parent b35efa5 commit 4ec5c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/measure.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private function computeAccuracy($watchMeasure){
$userDelta = $watchMeasure->accuracyUserTime - $watchMeasure->measureUserTime;
$refDelta = $watchMeasure->accuracyReferenceTime - $watchMeasure->measureReferenceTime;
$accuracy = ($userDelta*86400/$refDelta)-86400;
$accuracy = sprintf("%.2f", $accuracy);
$accuracy = sprintf("%.1f", $accuracy);
return $accuracy;
}

Expand Down

0 comments on commit 4ec5c78

Please sign in to comment.