summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@daileon.acd.puc-campinas.edu.br>2008-10-27 18:46:05 -0200
committerLeandro Pereira <leandro@daileon.acd.puc-campinas.edu.br>2008-10-27 18:46:50 -0200
commit7e3d8ba8bdc98bc3018628a6f1d740c4f4c268ae (patch)
tree52f753d3ba7b4d20c81cb964cf751c09f84201c9
parentf42a25ffd22c96fa5578b4117e78ccf8677aa595 (diff)
Fix typos
-rw-r--r--hardinfo2/benchmark.c4
-rw-r--r--hardinfo2/devices.c1
2 files changed, 3 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)",
diff --git a/hardinfo2/devices.c b/hardinfo2/devices.c
index 4f88d71e..e4a2fa7b 100644
--- a/hardinfo2/devices.c
+++ b/hardinfo2/devices.c
@@ -167,6 +167,7 @@ gchar *get_input_devices(void)
gchar *get_processor_count(void)
{
+ scan_processors(FALSE);
return g_strdup_printf("%d", g_slist_length(processors));
}