From f3db570a534c41c26250c32cbed76d1d5f9faef6 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Wed, 28 Dec 2016 16:01:28 +0000 Subject: [PATCH] Add display for new "-1" status --- header.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/header.php b/header.php index 7470f060..21403bb0 100644 --- a/header.php +++ b/header.php @@ -24,13 +24,13 @@ // $output could be either 4-5 digits or 2-3, and we only divide by 1000 if it's 4-5 // ex. 39007 vs 39 $celsius = intVal($output); - + // If celsius is greater than 1 degree and is in the 4-5 digit format if($celsius > 1000) { // Use multiplication to get around the division-by-zero error $celsius *= 1e-3; } - + $kelvin = $celsius + 273.15; $fahrenheit = ($celsius*9./5)+32.0; @@ -259,8 +259,10 @@ echo ' Active'; } elseif ($pistatus == "0") { echo ' Offline'; + } elseif ($pistatus == "-1") { + echo ' DNS service not running'; } else { - echo ' Starting'; + echo ' Unknown'; } // CPU Temp