Commit 736ba7c7 authored by Marek Vavrusa's avatar Marek Vavrusa

modules/http: limit graph to 1000 datapoints

parent 5426e206
......@@ -174,6 +174,9 @@ $(function() {
}
/* Buffer graph changes. */
data.push(line);
if (data.length > 1000) {
data.shift();
}
if (!buffer) {
graph.updateOptions( { 'file': data } );
}
......
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