diff options
author | Burt P <pburt0@gmail.com> | 2019-12-23 12:48:22 -0600 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2019-12-26 17:36:47 -0800 |
commit | c96d6f9d4361cf3f936c2338184a484111a15411 (patch) | |
tree | ffd4c4e78c7d986cb28e9ba656dfa9a019a82ba0 /modules/benchmark/bench_results.c | |
parent | aa043652d03e43557d234b76dec77cd7f2e0d656 (diff) |
bench_results: strtoll() -> strtoull() for memory sizes
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/benchmark/bench_results.c')
-rw-r--r-- | modules/benchmark/bench_results.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/benchmark/bench_results.c b/modules/benchmark/bench_results.c index 72642b0a..429d0f1b 100644 --- a/modules/benchmark/bench_results.c +++ b/modules/benchmark/bench_results.c @@ -170,7 +170,7 @@ bench_machine *bench_machine_this() { m->gpu_desc = module_call_method("devices::getGPUList"); m->ogl_renderer = module_call_method("computer::getOGLRenderer"); tmp = module_call_method("computer::getMemoryTotal"); - m->memory_kiB = strtoll(tmp, NULL, 10); + m->memory_kiB = strtoull(tmp, NULL, 10); m->memory_phys_MiB = memory_devices_get_system_memory_MiB(); m->ram_types = memory_devices_get_system_memory_types_str(); free(tmp); @@ -283,7 +283,7 @@ bench_result *bench_result_benchmarkconf(const char *section, const char *key, c b->machine->cpu_name = strdup(values[3]); b->machine->cpu_desc = strdup(values[4]); b->machine->cpu_config = strdup(values[5]); - b->machine->memory_kiB = strtoll(values[6], NULL, 10); + b->machine->memory_kiB = strtoull(values[6], NULL, 10); b->machine->processors = atoi(values[7]); b->machine->cores = atoi(values[8]); b->machine->threads = atoi(values[9]); @@ -298,7 +298,7 @@ bench_result *bench_result_benchmarkconf(const char *section, const char *key, c if (vl >= 15) b->machine->is_su_data = atoi(values[14]); if (vl >= 16) - b->machine->memory_phys_MiB = strtoll(values[15], NULL, 10); + b->machine->memory_phys_MiB = strtoull(values[15], NULL, 10); if (vl >= 17) b->machine->ram_types = strdup(values[16]); b->legacy = 0; |