Update ntp_status.widget.php

fixed tail path
This commit is contained in:
nagyrobi 2014-02-18 18:22:25 +01:00
parent de3ba99585
commit fe5ad8afe0

View File

@ -41,7 +41,7 @@ require_once("/usr/local/www/widgets/include/ntp_status.inc");
if($_REQUEST['updateme']) {
//this block displays only on ajax refresh
exec("/usr/local/sbin/ntpq -pn | /usr/sbin/tail +3", $ntpq_output);
exec("/usr/local/sbin/ntpq -pn | /usr/bin/tail +3", $ntpq_output);
$ntpq_counter = 0;
foreach ($ntpq_output as $line) {
if (substr($line, 0, 1) == "*") {