aboutsummaryrefslogtreecommitdiff
path: root/topology.c
diff options
context:
space:
mode:
Diffstat (limited to 'topology.c')
-rw-r--r--topology.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/topology.c b/topology.c
index ff0b6fb..c7528af 100644
--- a/topology.c
+++ b/topology.c
@@ -333,7 +333,7 @@ static struct cpu_topology *topo_folder_scan(char *path, folder_filter_t filter)
if (filter && filter(direntp->d_name))
continue;
- if (!strstr(direntp->d_name, "cpu"))
+ if (strncmp(direntp->d_name, "cpu", 3))
continue;
ret = asprintf(&newpath, "%s/%s/%s", basedir,