Skip to content

Commit

Permalink
change debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
NaN-git committed Jan 17, 2017
1 parent e3c4320 commit e2b978e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sgminer.c
Original file line number Diff line number Diff line change
Expand Up @@ -5510,7 +5510,7 @@ static void hashmeter(int thr_id, struct timeval *diff,
struct timeval runtime;
timersub(&total_tv_end, &launch_time, &runtime);
double runtime_secs = runtime.tv_sec + 1e-6 * runtime.tv_usec;
applog(LOG_DEBUG, "total hashes: %g, total runtime / s: %g", 1e6 * total_mhashes_done, runtime_secs);
applog(LOG_DEBUG, "total hashes: %.0f, total runtime / s: %.3f", 1e6 * total_mhashes_done, runtime_secs);

local_secs = (double)total_diff.tv_sec + ((double)total_diff.tv_usec / 1000000.0);
decay_time(&total_rolling, local_mhashes_done / local_secs, local_secs);
Expand Down

0 comments on commit e2b978e

Please sign in to comment.