updating to new network health page

This commit is contained in:
Alexandre Van de Sande 2015-03-03 15:00:34 -03:00
parent 21c373b55d
commit 8c2940a98b
2 changed files with 5 additions and 4 deletions

@ -759,7 +759,7 @@ ApplicationWindow {
Rectangle {
height: 55
color: "transparent"
visible:false
visible: true
Text {
text: "DEBUG"
font.family: sourceSansPro.name

@ -92,15 +92,16 @@ Rectangle {
// Check if it's mining and set it accordingly
if (miningSliderValue > 0 && !eth.miner().mining()) {
// If the
eth.setGasPrice("10000000000000");
eth.miner().start();
} else if (miningSliderValue == 0 && eth.miner().mining()) {
eth.miner().stop();
} else if (eth.miner().mining()) {
webview.runJavaScript('console.log(localStorage.timeSpent); Miner.timeSpentMining++; Miner.hashrate = ' + eth.miner().hashRate() );
webview.runJavaScript('var miningData = MiningData.findOne(); MiningData.update(miningData._id, {$inc: {totalTimeSpent: 1}}); Miner.hashrate = ' + eth.miner().hashRate() );
//var miningData = MiningData.findOne(); MiningData.update(miningData._id, {$inc: {totalTimeSpent: 1}});
} else if (miningSliderValue == "undefined") {