Fixed bug multiple refresh instances and harmonized interface.

This commit is contained in:
Mokaddem 2016-12-23 16:15:05 +01:00
parent 03dddbc359
commit a18c046dea
2 changed files with 10 additions and 7 deletions

View file

@ -1,6 +1,6 @@
var time_since_last_pastes_num = {};
var data_for_processed_paste = { "global": [] };
var list_feeder = ["global"];
var list_feeder = [];
var htmltext_graph_container = "<div class=\"col-lg-6\"> <div id=\"$1\" style=\"height: 90px; padding: 0px; position: relative;\"></div></div>";
window.paste_num_tabvar_all = {};
@ -134,8 +134,11 @@ function create_log_table(obj_json) {
var msg_type = parsedmess[4].split(" ")[2];
if (feeder == "All_feeders"){
if(list_feeder.indexOf("global") == -1) {
list_feeder.push("global");
var total_proc = $.plot("#global", [ getData("global") ], options_processed_pastes);
update_processed_pastes(total_proc, "global");
}
window.paste_num_tabvar_all["global"] = paste_processed;
time_since_last_pastes_num["global"] = new Date().getTime();
} else {

View file

@ -91,12 +91,12 @@
</div>
<div class="row">
<div class="col-lg-8">
<div class="col-lg-6">
<div class="panel panel-default">
<div class="panel-heading">
<i class="fa fa-bar-chart-o fa-fw"></i> <i class="fa fa-dashboard fa-fw"></i> <i class="fa fa-copy"></i>Feeder(s) Monitor: Processed pastes and filtered duplicated
<i class="fa fa-bar-chart-o fa-fw"></i> Feeder(s) Monitor: Processed pastes and filtered duplicated
</div>
<div id="panelbody" class="panel-body" style="height:489px;">
<div id="panelbody" class="panel-body" style="height:420px;">
</div>
@ -105,7 +105,7 @@
<!-- /.panel -->
</div>
<!-- /.col-lg-6 -->
<div class="col-lg-4">
<div class="col-lg-6">
<div class="panel panel-default">
<div class="panel-heading">
<i class="fa fa-bar-chart-o fa-fw"></i> Queues Monitor