summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_ntpd.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/status_ntpd.php')
-rw-r--r--usr/local/www/status_ntpd.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr/local/www/status_ntpd.php b/usr/local/www/status_ntpd.php
index 44c9733..329764b 100644
--- a/usr/local/www/status_ntpd.php
+++ b/usr/local/www/status_ntpd.php
@@ -108,7 +108,7 @@ if (!isset($config['ntpd']['noquery'])) {
$tmp = $tmp[1];
if (substr($tmp, 0, 6) == '$GPRMC') {
$gps_vars = explode(",", $tmp);
- $gps_ok = ($gps_vars[2] == "A");
+ $gps_ok = ($gps_vars[2] == "A");
$gps_lat_deg = substr($gps_vars[3], 0, 2);
$gps_lat_min = substr($gps_vars[3], 2) / 60.0;
$gps_lon_deg = substr($gps_vars[5], 0, 3);
@@ -119,7 +119,7 @@ if (!isset($config['ntpd']['noquery'])) {
$gps_lon = $gps_lon * (($gps_vars[6] == "E") ? 1 : -1);
} elseif (substr($tmp, 0, 6) == '$GPGGA') {
$gps_vars = explode(",", $tmp);
- $gps_ok = $gps_vars[6];
+ $gps_ok = $gps_vars[6];
$gps_lat_deg = substr($gps_vars[2], 0, 2);
$gps_lat_min = substr($gps_vars[2], 2) / 60.0;
$gps_lon_deg = substr($gps_vars[4], 0, 3);
@@ -133,7 +133,7 @@ if (!isset($config['ntpd']['noquery'])) {
$gps_sat = $gps_vars[7];
} elseif (substr($tmp, 0, 6) == '$GPGLL') {
$gps_vars = explode(",", $tmp);
- $gps_ok = ($gps_vars[6] == "A");
+ $gps_ok = ($gps_vars[6] == "A");
$gps_lat_deg = substr($gps_vars[1], 0, 2);
$gps_lat_min = substr($gps_vars[1], 2) / 60.0;
$gps_lon_deg = substr($gps_vars[3], 0, 3);
@@ -153,16 +153,16 @@ if (isset($config['ntpd']['gps']['type']) && ($config['ntpd']['gps']['type'] ==
$gpsport = fopen("/dev/gps0", "r+");
while ($gpsport) {
$buffer = fgets($gpsport);
- if (substr($buffer, 0, 6)=='$GPGSV') {
+ if (substr($buffer, 0, 6) == '$GPGSV') {
//echo $buffer."\n";
- $gpgsv = explode(',',$buffer);
+ $gpgsv = explode(',', $buffer);
$gps_satview = $gpgsv[3];
break;
}
}
}
-$pgtitle = array(gettext("Status"),gettext("NTP"));
+$pgtitle = array(gettext("Status"), gettext("NTP"));
$shortcut_section = "ntp";
include("head.inc");
?>
OpenPOWER on IntegriCloud