projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df5d102
)
uuid plugin: only look in /sys on Linux
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Fri, 25 Dec 2015 09:53:41 +0000
(10:53 +0100)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Thu, 4 Aug 2016 09:21:09 +0000
(11:21 +0200)
src/uuid.c
patch
|
blob
|
history
diff --git
a/src/uuid.c
b/src/uuid.c
index
446969a
..
223bfd5
100644
(file)
--- a/
src/uuid.c
+++ b/
src/uuid.c
@@
-201,8
+201,10
@@
uuid_get_local(void)
if ((uuid = uuid_get_from_dmidecode()) != NULL)
return (uuid);
+#if defined(__linux__)
if ((uuid = uuid_get_from_file("/sys/hypervisor/uuid")) != NULL)
return (uuid);
+#endif
return (NULL);
}