Skip to content
This repository has been archived by the owner on Aug 28, 2022. It is now read-only.

Commit

Permalink
fix the diagnostics page
Browse files Browse the repository at this point in the history
  • Loading branch information
demonrik committed Aug 17, 2019
1 parent 145973c commit dbf2041
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions app/diagnostics.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
require_once("includes/dvrui_common.php");
require_once("vars.php");

if (function_exists('opcache_reset')){
opcache_reset();
}


function getServerDiag() {
$htmlStr = "---------- OS and ENV VARIABLES --------------------------------------------------<br/>";
Expand Down Expand Up @@ -77,8 +81,8 @@ function getHDHRDiag($hdhr) {
$htmlStr = "---------- HDHR TUNERS-----------------------------------------------------------<br/>";
for ($i=0; $i < $devices; $i++) {
$htmlStr .= 'tuner(' . $i . ') id: ' . $hdhr->get_device_id($i) . "<br/>";
$htmlStr .= 'tuner(' . $i . ') model: ' . $hdhr->get_device_model($i) . "<br/>";
$htmlStr .= 'tuner(' . $i . ') firmware: ' . $hdhr->get_device_firmware($i) . "<br/>";
$htmlStr .= 'tuner(' . $i . ') model: ' . $hdhr->get_device_modelName($i) . "<br/>";
$htmlStr .= 'tuner(' . $i . ') firmware: ' . $hdhr->get_device_fwVer($i) . "<br/>";
$htmlStr .= 'tuner(' . $i . ') baseurl: ' . $hdhr->get_device_baseurl($i) . "<br/>";
$htmlStr .= 'tuner(' . $i . ') auth: ' . $hdhr->get_device_auth($i) . "<br/>";
}
Expand Down
2 changes: 1 addition & 1 deletion app/includes/dvrui_hdhrjson.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function DVRUI_HDHRjson() {
}else{
$cachesecs = 60;
}

$hdhr_data = getCachedJsonFromUrl($this->myhdhrurl,$cachesecs);
for ($i=0;$i<count($hdhr_data);$i++) {
$hdhr = $hdhr_data[$i];
Expand Down

0 comments on commit dbf2041

Please sign in to comment.