From 06cdaa431fcf15e13c86acda8f917274e0e67e36 Mon Sep 17 00:00:00 2001 From: Bill Mitchell Date: Thu, 18 May 2023 13:55:21 -0400 Subject: [PATCH 1/2] resolving warning about loss of precision --- Library/Data/Analysis.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Data/Analysis.php b/Library/Data/Analysis.php index f2a0a94..e1cef91 100644 --- a/Library/Data/Analysis.php +++ b/Library/Data/Analysis.php @@ -250,8 +250,8 @@ public static function uptime($uptime, $compact = false) { if ($uptime > 0) { $days = floor($uptime / 60 / 60 / 24); - $hours = $uptime / 60 / 60 % 24; - $mins = $uptime / 60 % 60; + $hours = floor($uptime / 60 / 60) % 24; + $mins = floor($uptime / 60) % 60; if (($days + $hours + $mins) == 0) { return ' less than 1 min'; } From c60a6ad225a4faa24af71cce6f9f7e4e433c7153 Mon Sep 17 00:00:00 2001 From: Bill Mitchell Date: Thu, 18 May 2023 13:55:36 -0400 Subject: [PATCH 2/2] resolving warning about optional parameter becoming required --- Library/HTML/Components.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/HTML/Components.php b/Library/HTML/Components.php index 8830147..bb10bd6 100644 --- a/Library/HTML/Components.php +++ b/Library/HTML/Components.php @@ -117,7 +117,7 @@ public static function serverResponse($hostname, $port, $data) * * @return String */ - public static function apiList($iniAPI = '', $id) + public static function apiList($iniAPI, $id) { return '