From f456e935f74f23ae76de31d5fb84906090c8e1aa Mon Sep 17 00:00:00 2001 From: Leandro Augusto Fogolin Pereira Date: Sat, 11 Apr 2009 18:54:47 -0300 Subject: Fit crash with FFT benchmark. --- hardinfo2/arch/common/cryptohash.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hardinfo2/arch/common/cryptohash.h') diff --git a/hardinfo2/arch/common/cryptohash.h b/hardinfo2/arch/common/cryptohash.h index 9897bb6b..2c917c9b 100644 --- a/hardinfo2/arch/common/cryptohash.h +++ b/hardinfo2/arch/common/cryptohash.h @@ -39,12 +39,12 @@ static void inline sha1_step(char *data, glong srclen) SHA1Final(checksum, &ctx); } -static gpointer cryptohash_for(unsigned int start, unsigned int end, void *data, GTimer *timer) +static gpointer cryptohash_for(unsigned int start, unsigned int end, void *data, gint thread_number) { unsigned int i; for (i = start; i <= end; i++) { - if (i % 2 == 0) { + if (i & 1) { md5_step(data, 65536); } else { sha1_step(data, 65536); -- cgit v1.2.3