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

modules/http: limit graph to 1000 datapoints

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