fix wrong timer for stats

fix #21, hash values randomly not available.
The reason is that I changed the lables but forget to change all timer.
A GPU needs sometimes ore than 2.5s to finish one hash round, therefore
the results are only visible randomly.
This commit is contained in:
psychocrypt
2017-10-06 22:52:54 +02:00
parent 83752eccc0
commit 73f75f95b7
+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);