From 470e5d142dd9cab16c778ddc5e49fef015896b0c Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Sat, 14 May 2022 15:48:03 -0400 Subject: [PATCH] Round confidence to 2 decimals --- scripts/overview.php | 2 +- scripts/play.php | 2 +- scripts/stats.php | 4 ++-- scripts/todays_detections.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/overview.php b/scripts/overview.php index cba8a9f..9087ead 100644 --- a/scripts/overview.php +++ b/scripts/overview.php @@ -64,7 +64,7 @@ if(isset($_GET['ajax_detections']) && $_GET['ajax_detections'] == "true" && isse
-
Confidence:
+
Confidence:
diff --git a/scripts/play.php b/scripts/play.php index ad869be..f6f84f5 100644 --- a/scripts/play.php +++ b/scripts/play.php @@ -176,7 +176,7 @@ if(isset($_GET['species'])){ $sciname = preg_replace('/ /', '_', $results['Sci_Name']); $sci_name = $results['Sci_Name']; $time = $results['Time']; - $confidence = $results['Confidence']; + $confidence = round($results['Confidence'],2); echo " $date $time
$confidence
diff --git a/scripts/stats.php b/scripts/stats.php index 230a54a..a136946 100644 --- a/scripts/stats.php +++ b/scripts/stats.php @@ -116,7 +116,7 @@ $filename = "/By_Date/".$results['Date']."/".$comname."/".$results['File_Name']; while($results=$result3->fetchArray(SQLITE3_ASSOC)){ $count = $results['COUNT(*)']; - $maxconf = $results['MAX(Confidence)']; + $maxconf = round($results['MAX(Confidence)'],2); $date = $results['Date']; $time = $results['Time']; $name = $results['Com_Name']; @@ -172,7 +172,7 @@ fwrite($excludefile, $txt);
Occurrences:
- Max Confidence:
+ Max Confidence:
Best Recording:



- Confidence:
+ Confidence: