quick modification to show the actual lengh of the session in the "game details" instant of just "now playing".
This commit is contained in:
@@ -45,7 +45,7 @@ class ps4 {
|
||||
|
||||
echo '<div class="PlaytimeEnd">';
|
||||
if ($row["game_end"] == "") {
|
||||
echo "";
|
||||
echo "<strong>now playing</strong>";
|
||||
} else {
|
||||
echo $this->secondsToDate($row["game_end"]);
|
||||
}
|
||||
@@ -53,7 +53,7 @@ class ps4 {
|
||||
|
||||
echo '<div class="PlaytimeTotal">';
|
||||
if ($row["game_end"] == "") {
|
||||
echo "<strong>now playing</strong>";
|
||||
echo $this->playtime(((round(microtime(true) * 1000)-$row["game_start"])/1000),true);
|
||||
} else {
|
||||
echo $this->playtime((($row["game_end"]-$row["game_start"])/1000),true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user