Fix for session being reported negative
This commit is contained in:
parent
556b95c7c1
commit
4fe5dc6ad0
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user