From 6cea8eb6a340072c87f62d0105f2d2359b8ae71e Mon Sep 17 00:00:00 2001 From: Hiram Clawson Date: Mon, 4 Nov 2002 04:13:21 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=566 --- client/speed_stats.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/speed_stats.C b/client/speed_stats.C index 1af5775532..63c9013dbe 100644 --- a/client/speed_stats.C +++ b/client/speed_stats.C @@ -80,8 +80,8 @@ int check_cache_size(int mem_size) { fprintf(stderr, "error: check_cache_size: negative mem_size\n"); return ERR_NEG; } - logStride = (int)(log(STRIDE_MAX/STRIDE_MIN)/log(2.0))+1; - logCache = (int)(log(CACHE_MAX/CACHE_MIN)/log(2.0))+1; + logStride = (int)(log((double)(STRIDE_MAX/STRIDE_MIN))/log(2.0))+1; + logCache = (int)(log((double)(CACHE_MAX/CACHE_MIN))/log(2.0))+1; printf("Test will take about %.2f seconds.\n", SECS_PER_RUN*logStride*logCache); results = (double **)malloc(sizeof(double *)*logStride);