Skip to content
Snippets Groups Projects
Commit 76dd040d authored by Robert Goldmann's avatar Robert Goldmann
Browse files

bugfix

parent dfe751cb
Branches
Tags
No related merge requests found
<?php
$json = file_get_contents("http://".$_SERVER['SERVER_NAME']."/status/status-api.php");
include_once "status-api.php";
$infos = json_decode($json);
$percentageRAMClear = substr($infos->memPercentageUsed, 0, strlen($infos->memPercentageUsed) -2);
......
......@@ -51,5 +51,5 @@ $infos = array(
'cpuLoad' => $load
);
echo json_encode($infos);
$json = json_encode($infos);
?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment