Commit 928a1761 authored by Leigh Stoller's avatar Leigh Stoller

Minor fix to duplicate stamps; cull the subsequent stamps, not the

first one!
parent f395d9a3
......@@ -92,10 +92,21 @@ window.ShowResGraph = (function ()
/*
* Oh, turns out two consecutive timestamps can have
* the same free/held values. Cull those out too.
* We want the first one, eating up the subsequent
* timestamps with the same values.
*/
if (data.free == nextdata.free &&
data.held == nextdata.held) {
//console.info("toss2", type, data, nextdata);
//console.info("toss2", type, data);
temp.push(data);
for (i = i + 1; i < array.length - 1; i++) {
nextdata = array[i];
if (! (data.free == nextdata.free &&
data.held == nextdata.held)) {
break;
}
//console.info("toss2-B", nextdata);
}
continue;
}
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment