1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-25 14:04:25 +00:00

Zero the best share string memory when zeroing stats.

This commit is contained in:
Con Kolivas 2012-12-31 09:15:17 +11:00
parent b53372b43d
commit ec9b32aac0

View File

@ -3931,6 +3931,7 @@ void zero_stats(void)
total_secs = 1.0; total_secs = 1.0;
best_diff = 0; best_diff = 0;
total_diff1 = 0; total_diff1 = 0;
memset(best_share, 0, 8);
suffix_string(best_diff, best_share, 0); suffix_string(best_diff, best_share, 0);
for (i = 0; i < total_pools; i++) { for (i = 0; i < total_pools; i++) {