Fix for session being reported negative

This commit is contained in:
Deon George 2024-05-12 20:46:00 +10:00
parent 64d37741a5
commit 171392cf40

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':