aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/openbgpd/openbgpd_status.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/config/openbgpd/openbgpd_status.php b/config/openbgpd/openbgpd_status.php
index c7987ec4..1eaee2ea 100644
--- a/config/openbgpd/openbgpd_status.php
+++ b/config/openbgpd/openbgpd_status.php
@@ -173,16 +173,8 @@ function execCmds() {
function update_count_callback(transport) {
// First line contain field id to be updated
var responseTextArr = transport.responseText.split("\n");
- var result = "";
- var i;
-
- for (i = 1; i < responseTextArr.length; i++) {
- result += responseTextArr[i];
- if (i < responseTextArr.length - 1)
- result += "\n";
- }
- document.getElementById(responseTextArr[0] + "_count").innerHTML = result;
+ document.getElementById(responseTextArr[0] + "_count").innerHTML = responseTextArr[1];
}
function update_filter(cmd, header_size) {