Do not store that many data points

This commit is contained in:
Sebastian Grewe 2013-09-15 01:42:25 +02:00
parent 917aeace49
commit 8193860bd9

View File

@ -70,7 +70,7 @@ $(document).ready(function(){
success: function(data) {
console.log(storedData.length);
// Start dropping out elements
if (storedData.length > 60) { storedData.shift(); }
if (storedData.length > 20) { storedData.shift(); }
storedData[storedData.length] = [new Date().getTime(), data.getuserhashrate.hashrate];
$.jqplot('hashrategraph', [storedData], jqPlotOptions).replot();
}