diff options
author | Leandro Pereira <leandro@daileon.acd.puc-campinas.edu.br> | 2008-10-27 18:46:05 -0200 |
---|---|---|
committer | Leandro Pereira <leandro@daileon.acd.puc-campinas.edu.br> | 2008-10-27 18:46:50 -0200 |
commit | 7e3d8ba8bdc98bc3018628a6f1d740c4f4c268ae (patch) | |
tree | 52f753d3ba7b4d20c81cb964cf751c09f84201c9 /hardinfo2/benchmark.c | |
parent | f42a25ffd22c96fa5578b4117e78ccf8677aa595 (diff) |
Fix typos
Diffstat (limited to 'hardinfo2/benchmark.c')
-rw-r--r-- | hardinfo2/benchmark.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hardinfo2/benchmark.c b/hardinfo2/benchmark.c index c0928305..1efe34ba 100644 --- a/hardinfo2/benchmark.c +++ b/hardinfo2/benchmark.c @@ -97,9 +97,9 @@ gdouble benchmark_parallel_for(guint start, guint end, timer = g_timer_new(); temp = module_call_method("devices::getProcessorCount"); - n_cores = temp ? 1 : atoi(temp); + n_cores = temp ? atoi(temp) : 1; g_free(temp); - + iter_per_core = (end - start) / n_cores; DEBUG("processor has %d cores; processing %d elements (%d per core)", |