Small adjustments
This commit is contained in:
parent
b613307a6f
commit
92b2cdf9c9
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ function getTime()
|
||||||
$file = fopen($FILENAME, "r");
|
$file = fopen($FILENAME, "r");
|
||||||
$time = fread($file, filesize($FILENAME));
|
$time = fread($file, filesize($FILENAME));
|
||||||
fclose($file);
|
fclose($file);
|
||||||
return $time;
|
return (int)$time;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ if (isset($_GET['secret']) && $_GET['secret'] == $SECRET_KEY) {
|
||||||
// Current status requested
|
// Current status requested
|
||||||
$last_activity = getTime();
|
$last_activity = getTime();
|
||||||
$response = array(
|
$response = array(
|
||||||
"last_activity" => date(DATE_ATOM, $last_activity)
|
"last_activity" => $last_activity
|
||||||
);
|
);
|
||||||
|
|
||||||
// Estimate current activity
|
// Estimate current activity
|
||||||
|
|
Loading…
Reference in a new issue