projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13c83b9
)
uuid plugin: look in smbios system table for uuid
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Fri, 25 Dec 2015 09:51:01 +0000
(10:51 +0100)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Thu, 4 Aug 2016 09:21:09 +0000
(11:21 +0200)
This saves a lot of parsing when dmidecode output is large.
src/uuid.c
patch
|
blob
|
history
diff --git
a/src/uuid.c
b/src/uuid.c
index
5bb4472
..
446969a
100644
(file)
--- 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)