Browse Source

Update the hashmeter once per second but only display the extra logs every opt_log_inteval.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
5a2c2a7a85
  1. 5
      cgminer.c

5
cgminer.c

@ -4686,9 +4686,10 @@ static void hashmeter(int thr_id, struct timeval *diff,
total_mhashes_done += local_mhashes; total_mhashes_done += local_mhashes;
local_mhashes_done += local_mhashes; local_mhashes_done += local_mhashes;
if (total_diff.tv_sec < opt_log_interval) /* Only update the total every second */
/* Only update the total every opt_log_interval seconds */ if (!total_diff.tv_sec)
goto out_unlock; goto out_unlock;
if (total_diff.tv_sec >= opt_log_interval)
showlog = true; showlog = true;
gettimeofday(&total_tv_end, NULL); gettimeofday(&total_tv_end, NULL);

Loading…
Cancel
Save