From: Ruben Kerkhof Date: Fri, 25 Dec 2015 09:51:01 +0000 (+0100) Subject: uuid plugin: look in smbios system table for uuid X-Git-Tag: collectd-5.6.0~87^2~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=df5d1022f12e9a4620da763bb510095c8ee0777e;p=collectd.git uuid plugin: look in smbios system table for uuid This saves a lot of parsing when dmidecode output is large. --- diff --git a/src/uuid.c b/src/uuid.c index 5bb4472e..446969aa 100644 --- a/src/uuid.c +++ b/src/uuid.c @@ -97,7 +97,7 @@ uuid_parse_dmidecode(FILE *file) static char * uuid_get_from_dmidecode(void) { - FILE *dmidecode = popen("dmidecode 2>/dev/null", "r"); + FILE *dmidecode = popen("dmidecode -t system 2>/dev/null", "r"); char *uuid; if (!dmidecode)