summaryrefslogtreecommitdiffstats
path: root/usr/local/www/graph.php
diff options
context:
space:
mode:
authorVinicius Coque <vinicius.coque@bluepex.com>2010-08-13 14:31:49 -0300
committerVinicius Coque <vinicius.coque@bluepex.com>2010-08-13 14:31:49 -0300
commit6c83f226396e6d95caf5265c715497e6652666e9 (patch)
tree438b98d1dc26cfec69df04b5d2e3855494be1649 /usr/local/www/graph.php
parentd886ebd6d438cf9b397face67ed4f254de661a94 (diff)
downloadpfsense-6c83f226396e6d95caf5265c715497e6652666e9.zip
pfsense-6c83f226396e6d95caf5265c715497e6652666e9.tar.gz
Fix some javascripts broken on gettext() implementation
Diffstat (limited to 'usr/local/www/graph.php')
-rwxr-xr-xusr/local/www/graph.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr/local/www/graph.php b/usr/local/www/graph.php
index 9ada3dc..964c2c7 100755
--- a/usr/local/www/graph.php
+++ b/usr/local/www/graph.php
@@ -352,21 +352,21 @@ function formatSpeed(speed, unit) {
function formatSpeedBits(speed) {
// format speed in bits/sec, input: bytes/sec
if (speed < 125000)
- return Math.round(speed / 125) + " " + <?=gettext("Kbps"); ?>;
+ return Math.round(speed / 125) + " <?=gettext("Kbps"); ?>";
if (speed < 125000000)
- return Math.round(speed / 1250)/100 + " " + <?=gettext("Mbps"); ?>;
+ return Math.round(speed / 1250)/100 + " <?=gettext("Mbps"); ?>";
// else
- return Math.round(speed / 1250000)/100 + " " + <?=gettext("Gbps"); ?>; /* wow! */
+ return Math.round(speed / 1250000)/100 + " <?=gettext("Gbps"); ?>"; /* wow! */
}
function formatSpeedBytes(speed) {
// format speed in bytes/sec, input: bytes/sec
if (speed < 1048576)
- return Math.round(speed / 10.24)/100 + " " + <?=gettext("KB/s"); ?>;
+ return Math.round(speed / 10.24)/100 + " <?=gettext("KB/s"); ?>";
if (speed < 1073741824)
- return Math.round(speed / 10485.76)/100 + " " + <?=gettext("MB/s"); ?>;
+ return Math.round(speed / 10485.76)/100 + " <?=gettext("MB/s"); ?>";
// else
- return Math.round(speed / 10737418.24)/100 + " " + <?=gettext("GB/s"); ?>; /* wow! */
+ return Math.round(speed / 10737418.24)/100 + " <?=gettext("GB/s"); ?>"; /* wow! */
}
function LZ(x) {
OpenPOWER on IntegriCloud