summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorDr. James Dominic P. Guana <jdpguana@histark.com>2021-08-20 19:08:15 +0800
committerRobert Roth <robert.roth.off@gmail.com>2022-03-28 12:32:26 +0000
commit629097436a2c654402e2a5210a2a0b4ca217b42c (patch)
tree86af25d46026ac741821f123fc75ee215f42ff54 /sysdeps
parent04bf09341203173bc2ee6ff1cd990cc78c2c38c0 (diff)
downloadlibgtop-629097436a2c654402e2a5210a2a0b4ca217b42c.tar.gz
Exposes the processor model
Accessing processor model becomes easier Signed off: Dr. James Dominic P. Guana <jdpguana@histark.com>
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/linux/sysinfo.c5
1 files changed, 3 insertions, 2 deletions
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;
}