Browse Source

Instantiate system class w/ namespace

pull/985/head
billz 6 months ago
parent
commit
4e62413e11
  1. 2
      includes/sysstats.php
  2. 2
      includes/system.php

2
includes/sysstats.php

@ -2,7 +2,7 @@
require_once 'app/lib/system.php';
$system = new System();
$system = new \RaspAP\System\Sysinfo;
$hostname = $system->hostname();
$uptime = $system->uptime();

2
includes/system.php

@ -153,7 +153,7 @@ function DisplaySystem()
);
#fetch system status variables.
$system = new System();
$system = new \RaspAP\System\Sysinfo;
$hostname = $system->hostname();
$uptime = $system->uptime();

Loading…
Cancel
Save