From 37151b909129ac3bcad8c14d80e90a02a2f841da Mon Sep 17 00:00:00 2001 From: Sebastien Plante Date: Tue, 1 Jan 2019 15:52:02 -0500 Subject: [PATCH] quick modification to show the actual lengh of the session in the "game details" instant of just "now playing". --- class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/class.php b/class.php index 35191e2..1586bab 100644 --- a/class.php +++ b/class.php @@ -45,7 +45,7 @@ class ps4 { echo '
'; if ($row["game_end"] == "") { - echo ""; + echo "now playing"; } else { echo $this->secondsToDate($row["game_end"]); } @@ -53,7 +53,7 @@ class ps4 { echo '
'; if ($row["game_end"] == "") { - echo "now playing"; + echo $this->playtime(((round(microtime(true) * 1000)-$row["game_start"])/1000),true); } else { echo $this->playtime((($row["game_end"]-$row["game_start"])/1000),true); }