Merge pull request #26 from psychocrypt/fix-hashStatWrongTimer

fix wrong timer for stats
This commit is contained in:
fireice-uk
2017-10-07 00:52:42 +01:00
committed by GitHub
+3 -3
View File
@@ -451,7 +451,7 @@ void executor::ex_main()
for (i = 0; i < pvThreads->size(); i++)
{
fTelem = telem->calc_telemetry_data(2500, i);
fTelem = telem->calc_telemetry_data(10000, i);
if(std::isnormal(fTelem))
{
fHps += fTelem;
@@ -730,7 +730,7 @@ void executor::http_hashrate_report(std::string& out)
{
double fHps[3];
fHps[0] = telem->calc_telemetry_data(2500, i);
fHps[0] = telem->calc_telemetry_data(10000, i);
fHps[1] = telem->calc_telemetry_data(60000, i);
fHps[2] = telem->calc_telemetry_data(900000, i);
@@ -870,7 +870,7 @@ void executor::http_json_report(std::string& out)
if(i != 0) hr_thds.append(1, ',');
double fHps[3];
fHps[0] = telem->calc_telemetry_data(2500, i);
fHps[0] = telem->calc_telemetry_data(10000, i);
fHps[1] = telem->calc_telemetry_data(60000, i);
fHps[2] = telem->calc_telemetry_data(900000, i);