diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-04-18 16:39:22 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-04-18 16:39:50 -0400 |
commit | ca459215752b0f20b37ac9e9201e2db414cb2c54 (patch) | |
tree | 6772a2976d84a92b39f91d6f7f690ca04b5f3336 /src/usr/local/www/status_ntpd.php | |
parent | 0cb39b48f2ce1e0310b5675b1fc67bf06c4f6988 (diff) | |
download | pfsense-ca459215752b0f20b37ac9e9201e2db414cb2c54.zip pfsense-ca459215752b0f20b37ac9e9201e2db414cb2c54.tar.gz |
Fixed GPS display sprintf => printf
(cherry picked from commit ef268b48adfd07bb4771858990eb7ed79de90585)
Diffstat (limited to 'src/usr/local/www/status_ntpd.php')
-rw-r--r-- | src/usr/local/www/status_ntpd.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/usr/local/www/status_ntpd.php b/src/usr/local/www/status_ntpd.php index d4be383..d10370a 100644 --- a/src/usr/local/www/status_ntpd.php +++ b/src/usr/local/www/status_ntpd.php @@ -208,7 +208,7 @@ function print_status() { elseif (count($ntpq_servers) == 0): print("<tr>\n"); print('<td class="warning" colspan="11">'); - sprintf(gettext("No peers found, %sis the ntp service running?%s"), '<a href="status_services.php">', '</a>'); + printf(gettext("No peers found, %sis the ntp service running?%s"), '<a href="status_services.php">', '</a>'); print("</td>\n"); print("</tr>\n"); else: @@ -239,26 +239,26 @@ function print_gps() { print("<tr>\n"); print("<td>\n"); - sprintf("%.5f", $gps_lat); + printf("%.5f", $gps_lat); print(" ("); - sprintf("%d%s", $gps_lat_deg, "°"); - sprintf("%.5f", $gps_lat_min*60); + printf("%d%s", $gps_lat_deg, "°"); + printf("%.5f", $gps_lat_min*60); print($gps_vars[4]); print(")"); print("</td>\n"); print("<td>\n"); - sprintf("%.5f", $gps_lon); + printf("%.5f", $gps_lon); print(" ("); - sprintf("%d%s", $gps_lon_deg, "°"); - sprintf("%.5f", $gps_lon_min*60); + printf("%d%s", $gps_lon_deg, "°"); + printf("%.5f", $gps_lon_min*60); print($gps_vars[6]); print(")"); print("</td>\n"); if (isset($gps_alt)) { - print("<td>\n"); - print($gps_alt . ' ' . $gps_alt_unit); - print("</td>\n"); + print("<td>\n"); + print($gps_alt . ' ' . $gps_alt_unit); + print("</td>\n"); } if (isset($gps_sat) || isset($gps_satview)) { |