Skip to content

Commit ef41a80

Browse files
committed
updated plotter to convert timestamps to dates instead of trying to handle weird offsets.
1 parent 46a09f1 commit ef41a80

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

parser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ define([], function() {
1313
data : [],
1414
};
1515
}
16-
var enq = parseFloat(result[2]);
17-
var comp = parseFloat(result[4]);
16+
var enq = parseFloat(result[2]) * 1000000.0;
17+
var comp = parseFloat(result[4]) * 1000000.0;
1818
var exec_time = parseFloat(result[5]);
1919
log_data[alias].data.push([enq, 0]);
2020
log_data[alias].data.push([enq, exec_time]);

plotter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ define(['plotly-js/plotly.min', 'd3'], function(Plotly,d3) {
1616

1717
Object.keys(data).map(function(key) {
1818
pdata.push({
19-
x : data[key].data.map(function(xy) { return xy[0] - offset; }),
19+
x : data[key].data.map(function(xy) { return new Date(xy[0]); }),
2020
y : data[key].data.map(function(xy) { return xy[1]; }),
2121
mode: 'lines',
2222
type: 'scatter',

userParser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ define([], function() {
1414
};
1515
}
1616
var time = parseFloat(result[2]);
17-
time = time / 1000000000.0;
17+
time = time / 1000000.0;
1818
var data = parseFloat(result[3]);
1919
log_data[alias].data.push([time, data]);
2020
result = re.exec(attribute);

0 commit comments

Comments
 (0)