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">';
|
echo '<div class="PlaytimeEnd">';
|
||||||
if ($row["game_end"] == "") {
|
if ($row["game_end"] == "") {
|
||||||
echo "";
|
echo "<strong>now playing</strong>";
|
||||||
} else {
|
} else {
|
||||||
echo $this->secondsToDate($row["game_end"]);
|
echo $this->secondsToDate($row["game_end"]);
|
||||||
}
|
}
|
||||||
@@ -53,7 +53,7 @@ class ps4 {
|
|||||||
|
|
||||||
echo '<div class="PlaytimeTotal">';
|
echo '<div class="PlaytimeTotal">';
|
||||||
if ($row["game_end"] == "") {
|
if ($row["game_end"] == "") {
|
||||||
echo "<strong>now playing</strong>";
|
echo $this->playtime(((round(microtime(true) * 1000)-$row["game_start"])/1000),true);
|
||||||
} else {
|
} else {
|
||||||
echo $this->playtime((($row["game_end"]-$row["game_start"])/1000),true);
|
echo $this->playtime((($row["game_end"]-$row["game_start"])/1000),true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user