mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Update ntp_status.widget.php
fixed tail path
This commit is contained in:
parent
de3ba99585
commit
fe5ad8afe0
@ -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) == "*") {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user