summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsychocrypt <psychocrypt@users.noreply.github.com>2017-10-06 22:52:54 +0200
committerpsychocrypt <psychocrypt@users.noreply.github.com>2017-10-06 22:52:54 +0200
commit73f75f95b709fdac46f99c28967590263a1c98c7 (patch)
treecd784fd72fabf40fcafeb136779be3dc1447a81f
parent83752eccc06e1d5f892961a5e9efd931403ab559 (diff)
downloadxmr-stak-73f75f95b709fdac46f99c28967590263a1c98c7.zip
xmr-stak-73f75f95b709fdac46f99c28967590263a1c98c7.tar.gz
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.
-rw-r--r--xmrstak/misc/executor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmrstak/misc/executor.cpp b/xmrstak/misc/executor.cpp
index ec9ac12..4627794 100644
--- a/xmrstak/misc/executor.cpp
+++ b/xmrstak/misc/executor.cpp
@@ -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);
OpenPOWER on IntegriCloud