Fix a small bug in mon_nodes view. More relaxed check nodes timeout, now 5 seconds instead of 0,1 second.

Sun, 15 Dec 2019 16:49:29 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Sun, 15 Dec 2019 16:49:29 +0100
changeset 573
c4c891d5c4f8
parent 572
7a03181d29a3
child 574
b436e3d8d83a

Fix a small bug in mon_nodes view. More relaxed check nodes timeout, now 5 seconds instead of 0,1 second.

bmsd/bms.c file | annotate | diff | comparison | revisions
www/js/mon_node.js file | annotate | diff | comparison | revisions
--- a/bmsd/bms.c	Sun Dec 15 15:08:09 2019 +0100
+++ b/bmsd/bms.c	Sun Dec 15 16:49:29 2019 +0100
@@ -133,7 +133,7 @@
 
     while (my_shutdown == FALSE) {
 
-	usleep(1000000);
+	usleep(5000000);
 	nodes_check_online();
     }
     if (debug)
--- a/www/js/mon_node.js	Sun Dec 15 15:08:09 2019 +0100
+++ b/www/js/mon_node.js	Sun Dec 15 16:49:29 2019 +0100
@@ -54,8 +54,8 @@
  },
  dataAdapter = new $.jqx.dataAdapter(source, {
   loadComplete: function(records) {
-   var oline = (record.online) ? 'On-line' : 'Off-line';
    var record = dataAdapter.records[0],
+   oline = (record.online) ? 'On-line' : 'Off-line',
    html = '<div id="node_table">';
    html += '<table style="width: 100%; padding: 10px;">';
    html += '<tr><th colspan=2>Systeem overzicht</th></tr>';

mercurial