diff options
| author | David Phillips <david@sighup.nz> | 2017-08-09 23:24:12 +1200 | 
|---|---|---|
| committer | David Phillips <david@sighup.nz> | 2017-08-09 23:24:12 +1200 | 
| commit | b6c95565e58cf6e367e3d29069ea628eb4ba3b6b (patch) | |
| tree | 0101d17bae383fd829f9e4b88ab151a33943725f | |
| parent | b4866cd9c59f2ee63e92d732a1f29ca042fe1b32 (diff) | |
| download | sand-leek-b6c95565e58cf6e367e3d29069ea628eb4ba3b6b.tar.xz | |
Thread count can never be zero, don't worry about /0 from it
| -rw-r--r-- | sand-leek.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/sand-leek.c b/sand-leek.c index 290bd09..41c0cbb 100644 --- a/sand-leek.c +++ b/sand-leek.c @@ -225,9 +225,9 @@ monitor_progress(unsigned long volatile *khashes, int thread_count) {  		}  		fprintf(stderr, "Last second: %lu kH/s (%.2f kH/s/thread) | Average: %.2f kH/s (%.2f kH/s/thread)\r",  			total_khashes - last_total_khashes, -			(double)(total_khashes - last_total_khashes) / (thread_count || 1), +			(double)(total_khashes - last_total_khashes) / thread_count,  			(double)total_khashes / (loops || 1), -			((double)total_khashes / (loops || 1)) / (thread_count || 1)); +			((double)total_khashes / (loops || 1)) / thread_count);  		sleep(1);  		loops++;  	} | 
