Closed jedimstr closed 10 years ago
Can you check wether there is a GHS 10s
or MHS 10s
key in the summary response of your miner?
None of them have 10s nodes... but CGMiner 4.2.0 has both GHS 5s
and MHS 5s
while BFGMiner 3.10.0 has just MHS 5s
.
Here are some samples:
{
"STATUS": [
{
"STATUS": "S",
"When": 1395586057,
"Code": 11,
"Msg": "Summary",
"Description": "bfgminer 3.10.0"
}
],
"SUMMARY": [
{
"Elapsed": 4850,
"MHS av": 32826.693,
"MHS 5s": 33150.317,
"Found Blocks": 0,
"Getworks": 292,
"Accepted": 342,
"Rejected": 22,
"Hardware Errors": 918,
"Utility": 4.231,
"Discarded": 1794,
"Stale": 0,
"Get Failures": 1,
"Local Work": 67449,
"Remote Failures": 0,
"Network Blocks": 8,
"Total MH": 159198989.6341,
"Diff1 Work": 36062.00000000,
"Work Utility": 446.157,
"Difficulty Accepted": 34497.96582759,
"Difficulty Rejected": 1998.15876137,
"Difficulty Stale": 0E-8,
"Best Share": 24086,
"Device Hardware%": 2.4824,
"Device Rejected%": 5.5409,
"Pool Rejected%": 5.4750,
"Pool Stale%": 0.0000
}
],
"id": 1
}
{
"STATUS": [
{
"STATUS": "S",
"When": 1395586378,
"Code": 11,
"Msg": "Summary",
"Description": "cgminer 4.2.0"
}
],
"SUMMARY": [
{
"Elapsed": 6541,
"GHS 5s": 200.10,
"GHS av": 200.77,
"Found Blocks": 0,
"Getworks": 382,
"Accepted": 4205,
"Rejected": 142,
"Hardware Errors": 907,
"Utility": 38.57,
"Discarded": 68031,
"Stale": 60,
"Get Failures": 1,
"Local Work": 251796,
"Remote Failures": 0,
"Network Blocks": 11,
"Total MH": 1313139005.8060,
"Work Utility": 2792.84,
"Difficulty Accepted": 289780.66048733,
"Difficulty Rejected": 13685.24456317,
"Difficulty Stale": 93.33866329,
"Best Share": 141574,
"Device Hardware%": 0.2970,
"Device Rejected%": 4.4951,
"Pool Rejected%": 4.5083,
"Pool Stale%": 0.0307,
"Last getwork": 1395586378,
"MHS av": 200768.31,
"MHS 5s": 200104.29
}
],
"id": 1
}
{
"STATUS": [
{
"STATUS": "S",
"When": 1395586342,
"Code": 11,
"Msg": "Summary",
"Description": "cgminer 3.2.1"
}
],
"SUMMARY": [
{
"Elapsed": 95956,
"MHS av": 2.77,
"Found Blocks": 0,
"Getworks": 4397,
"Accepted": 7806,
"Rejected": 201,
"Hardware Errors": 0,
"Utility": 4.88,
"Discarded": 2009,
"Stale": 0,
"Get Failures": 1,
"Local Work": 132393,
"Remote Failures": 0,
"Network Blocks": 1926,
"Total MH": 265704.9641,
"Work Utility": 2563.26,
"Difficulty Accepted": 3996672.00000000,
"Difficulty Rejected": 102912.00000000,
"Difficulty Stale": 0E-8,
"Best Share": 11545709
}
],
"id": 1
}
Damit, all these different API versions always break everything :wink:. Can you test with current master?
PS: It's okay that they dont have 10s
nodes in fact they should have loginterval
+ s
properties, but I didn't factor in if the properties is missing (in early API versions).
It's working now! Thanks!
BTW- the charts are not as flat now and are nicely active. Any way to configure the density/granularity of the timeframe shown?
Yep, but I see now that with the new more volatile hashrates the algorithm that I use produces, lets say, suboptimal results. I need to adapt it some more... Anyways its configurable per miner through the config file:
historicalDataStoredFor: 24 * 60 * 60 * 1000, // display the last 24 hours
historicalDataPrecision: 15 * 60 * 1000 // with a granularity of 15 minutes
I'll have another look at the algorithm that stores data with a certain precision this evening...
I renamed the configuration properties (and default values) in cb94e1f67535ece9ce0a8a83008fec321dca12ff: They now are:
chartTimespan: 24 * 60 * 60 * 1000,
chartPrecision: 5 * 60 * 1000
I git pulled after your commit on loginterval and now I get the following trying to start npm: