From 629097436a2c654402e2a5210a2a0b4ca217b42c Mon Sep 17 00:00:00 2001 From: "Dr. James Dominic P. Guana" Date: Fri, 20 Aug 2021 19:08:15 +0800 Subject: Exposes the processor model Accessing processor model becomes easier Signed off: Dr. James Dominic P. Guana --- sysdeps/linux/sysinfo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/linux/sysinfo.c b/sysdeps/linux/sysinfo.c index c9a66653..2ebe0ec5 100644 --- a/sysdeps/linux/sysinfo.c +++ b/sysdeps/linux/sysinfo.c @@ -59,8 +59,9 @@ init_sysinfo (glibtop *server) if (buf != NULL) { - buf+=2; // we want to look at what's _after_ the ':' - sysinfo.model = buf; + /* we want to look at what's _after_ the ':' */ + buf+=2; + sysinfo.model = g_strdup (buf); } break; } -- cgit v1.2.1