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 "