Project

General

Profile

« Previous | Next » 

Revision fdacd72b

Added by Doktor Notor over 8 years ago

Reduce numeric precision in gateways widget to single decimal place (Feature #6841)

View differences:

src/usr/local/www/widgets/widgets/gateways.widget.php
342 342
			$bgcolor = "info";  // lightblue
343 343
		}
344 344

  
345
		$rtnstr .= 	"<td>" . ($gateways_status[$gname] ? htmlspecialchars($gateways_status[$gname]['delay']) : gettext("Pending")) . "</td>\n";
346
		$rtnstr .= 	"<td>" . ($gateways_status[$gname] ? htmlspecialchars($gateways_status[$gname]['stddev']) : gettext("Pending")) . "</td>\n";
345
		$rtnstr .= 	"<td>" . ($gateways_status[$gname] ? ($gateways_status[$gname]['delay'] ? htmlspecialchars(number_format((float)rtrim($gateways_status[$gname]['delay'], "ms"), 1)) . "ms" : '') : gettext("Pending")) . "</td>\n";
346
		$rtnstr .= 	"<td>" . ($gateways_status[$gname] ? ($gateways_status[$gname]['stddev'] ? htmlspecialchars(number_format((float)rtrim($gateways_status[$gname]['stddev'], "ms"), 1)) . "ms" : '') : gettext("Pending")) . "</td>\n";
347 347
		$rtnstr .= 	"<td>" . ($gateways_status[$gname] ? htmlspecialchars($gateways_status[$gname]['loss']) : gettext("Pending")) . "</td>\n";
348 348
		$rtnstr .= '<td class="bg-' . $bgcolor . '">' . $online . "</td>\n";
349 349
		$rtnstr .= "</tr>\n";

Also available in: Unified diff