From 4ec5c78ddd28aa42a6f7d4ec88cc86b33f2b6df2 Mon Sep 17 00:00:00 2001 From: mathieu Date: Tue, 7 Jul 2015 10:25:11 -0400 Subject: [PATCH] Change pricision to 10th of sec on result page. #38 --- application/models/measure.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/measure.php b/application/models/measure.php index 8dd439f3..e616d1eb 100755 --- a/application/models/measure.php +++ b/application/models/measure.php @@ -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; }