Fix for session being reported negative

This commit is contained in:
Deon George 2024-05-12 20:46:00 +10:00
parent 556b95c7c1
commit 4fe5dc6ad0

View File

@ -92,7 +92,7 @@ class Node
// Return how long our session has been connected
case 'session_time':
return sprintf("%d",Carbon::now()->diffInSeconds($this->start_time));
return sprintf("%d",$this->start_time->diffInSeconds(Carbon::now()));
case 'system':
case 'sysop':