From ba0418a268bcdbd74cedf51b354a2d9b8df28aaa Mon Sep 17 00:00:00 2001 From: jakani24 Date: Mon, 1 Apr 2024 12:11:39 +0200 Subject: [PATCH] Update get_update_status.php --- src/server/cyberhex-code/api/php/database/get_update_status.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/cyberhex-code/api/php/database/get_update_status.php b/src/server/cyberhex-code/api/php/database/get_update_status.php index 2746de0..aa76cc7 100644 --- a/src/server/cyberhex-code/api/php/database/get_update_status.php +++ b/src/server/cyberhex-code/api/php/database/get_update_status.php @@ -9,7 +9,7 @@ $totalFiles = count($files) - (16 * 16); // Calculate the percentage - $percentage = ($totalFiles / 485+5) * 100; + $percentage = ($totalFiles / (485+5)) * 100; // Ensure the percentage is within the range 0-100 $percentage = max(0, min(100, $percentage));