]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsclocks: use clock id from clock_getcpuclockid in add_cpu_clock
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Sun, 4 Feb 2024 17:14:23 +0000 (09:14 -0800)
committerAlan Coopersmith <alan.coopersmith@oracle.com>
Sun, 4 Feb 2024 17:14:23 +0000 (09:14 -0800)
Fixes #2761

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
misc-utils/lsclocks.c

index b2bacdb29ef3e766bbf1e6c0666f2ffcfbc78395..867f860d5b155e31a7ba09c890176242d7b9faaa 100644 (file)
@@ -504,6 +504,7 @@ static void add_cpu_clock(struct libscols_table *tb,
 
        struct clockinfo clockinfo = {
                .type = CT_CPU,
+               .id = clockid,
                .name = name,
                .no_id = true,
        };