Possible to display instantaneous hashrate vs average hashrate?
Closed this issue · 7 comments
First off, thank you again for all your help with this. If I shouldn't be posting small questions like this here, please let me know and I will stop. Feel free to delete this if it shouldn't be here.
So, looking at miner.hbs I see that it calls {{hashrate avgHashrate}} where it publishes the
"Hashrate:".
Is it possible to not pull the average but the current hashrate that the miner is at, at that very moment?
Thank you again!
Sorry for the late answer, the displayed hashrate is not the average hashrate but the average hashrate over the last n seconds, where n is your log interval (I think the default is something around 5s).
5 seconds for CGMiner
20 seconds (configurable in conf parameters) for recent versions of BFGMiner
I'm using cgminer 3.7.3 (kalroth's version) and it seems to only report what is the OVERALL average shown on the miner, rather than the 5s average.
Is there any way to have it show the 5s average instead?
Currently, whatever the average is for the total time the miner has been running is what is displayed.
How do you come to this conclusion? As I see it in the source code it at least uses different data sources for the two values (MHS av
and MHS 5s
). See code.
I'm not quite sure if I was right, now after implementing charts the chart looks awfully flat, maybe I need to have another look at it or talk to the cgminer/bfgminer developers.
Sorry for dismissing the issue first, I thought I implemented the loginterval logic for all hashrates. But in fact I only did it for the device hashrates. This should be fixed now. 😳