diff --git a/application/models/measure.php b/application/models/measure.php index 80ea5b3e..8dd439f3 100755 --- a/application/models/measure.php +++ b/application/models/measure.php @@ -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 ){