diff options
author | Marat Dukhan <maratek@gmail.com> | 2018-04-10 16:52:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-10 16:52:16 -0700 |
commit | 0f6c68d46b4da6e4e9912d81c44f671169af1bf4 (patch) | |
tree | 5d7062b26d41f6a18971eef36dc4d09dff1326fd /README.md | |
parent | 3bed456cdec469ad42f17de49eb914c313c4e10d (diff) | |
download | cpuinfo-0f6c68d46b4da6e4e9912d81c44f671169af1bf4.tar.gz |
Fix compilation error in README example
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -90,7 +90,7 @@ cpu_set_t cpu_set; CPU_ZERO(&cpu_set); const struct cpuinfo_cache* current_l2 = cpuinfo_get_current_processor()->cache.l2; for (uint32_t i = 0; i < current_l2->processor_count; i++) { - CPU_SET(cpuinfo_get_processor(current_l2->processor_start + i).linux_id, &cpu_set); + CPU_SET(cpuinfo_get_processor(current_l2->processor_start + i)->linux_id, &cpu_set); } pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpu_set); ``` |