projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
uuid plugin: only look in /sys on Linux
[collectd.git]
/
src
/
uuid.c
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);
}