[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [atlas/master] Add time interval AFTER drawing a data point (Fixes: #20802)
commit f8bccdc9d126507b7aa4f882899354b0d72673ed
Author: Raphael Bergmann <raphael@xxxxxxxxxx>
Date: Wed Feb 1 12:09:42 2017 +0100
Add time interval AFTER drawing a data point (Fixes: #20802)
---
js/models/graph.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/js/models/graph.js b/js/models/graph.js
index ca36d48..1f356db 100644
--- a/js/models/graph.js
+++ b/js/models/graph.js
@@ -19,7 +19,6 @@ define([
var y = first.getTime();
_.each(history[period].values, function(value, i) {
- y += history[period].interval*1000;
var x = null
if (value != null) {
x = value*history[period].factor;
@@ -32,6 +31,7 @@ define([
var mperiod = "bw_" + period.split("_")[1]
var newar = model.get(mperiod)[name];
newar.push([y,x]);
+ y += history[period].interval*1000;
});
});
return newar;
@@ -47,7 +47,6 @@ define([
time[0], time[1], time[2]);
var y = first.getTime();
_.each(history[period].values, function(value, i) {
- y += history[period].interval*1000;
var x = null
if (value != null) {
x = value*history[period].factor;
@@ -55,6 +54,7 @@ define([
var mperiod = "weights_" + period.split("_")[1]
newar = model.get(mperiod)[name];
newar.push([y,x]);
+ y += history[period].interval*1000;
});
});
return newar;
@@ -70,7 +70,6 @@ define([
time[0], time[1], time[2]);
var y = first.getTime();
_.each(history[period].values, function(value, i) {
- y += history[period].interval*1000;
var x = null
if (value != null) {
x = value*history[period].factor;
@@ -78,6 +77,7 @@ define([
var mperiod = "clients_" + period.split("_")[1]
newar = model.get(mperiod)[name];
newar.push([y,x]);
+ y += history[period].interval*1000;
});
});
return newar;
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits