Skip to content

Commit

Permalink
Change pricision to 10th of sec on dashboard. #38
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuNls committed Jul 7, 2015
1 parent aa11a90 commit b35efa5
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 @@ -42,7 +42,7 @@ function getMeasuresByUser($userId, $userWatches)
foreach ($watchMeasures as $watchMeasure) {
//Compute accuracy
if( $watchMeasure->statusId == 2 ){
$data[$dataPushing]['accuracy'] = sprintf("%.2f", $this->computeAccuracy($watchMeasure));
$data[$dataPushing]['accuracy'] = sprintf("%.1f", $this->computeAccuracy($watchMeasure));
$data[$dataPushing]['statusId'] = $watchMeasure->statusId;
//Check if the measure was made less than 12 hours ago
} else if ( ((time() - $watchMeasure->measureReferenceTime)/3600 ) < 12 ){
Expand Down

0 comments on commit b35efa5

Please sign in to comment.