26 lines
850 B
Diff
26 lines
850 B
Diff
diff -up sblim-gather-2.2.9/plugin/metricVirt.h.orig sblim-gather-2.2.9/plugin/metricVirt.h
|
|
--- sblim-gather-2.2.9/plugin/metricVirt.h.orig 2014-10-09 23:29:10.000000000 +0200
|
|
+++ sblim-gather-2.2.9/plugin/metricVirt.h 2020-02-12 13:52:56.161653863 +0100
|
|
@@ -48,7 +48,9 @@ struct node_statistics_type {
|
|
size_t total_domains;
|
|
unsigned long long total_memory;
|
|
unsigned long long free_memory;
|
|
-} node_statistics;
|
|
+};
|
|
+
|
|
+extern struct node_statistics_type node_statistics;
|
|
|
|
struct domain_statistics_type {
|
|
unsigned int domain_id[MAX_DOMAINS];
|
|
@@ -61,7 +63,9 @@ struct domain_statistics_type {
|
|
unsigned long long cpu_used[MAX_DOMAINS];
|
|
unsigned long long cpu_ready[MAX_DOMAINS];
|
|
struct vdisk_type * blkio[MAX_DOMAINS];
|
|
-} domain_statistics;
|
|
+};
|
|
+
|
|
+extern struct domain_statistics_type domain_statistics;
|
|
|
|
int testHypervisor(int type);
|
|
|