the newer pve2.3-vm schema has been introduced with commit ba9dcfc1 back in 2013. By now there should be no cluster where an older node might still send the old pve2-vm schema.
Signed-off-by: Aaron Lauterer <a.laute...@proxmox.com> --- src/pmxcfs/status.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/pmxcfs/status.c b/src/pmxcfs/status.c index 0895e53..eba4e52 100644 --- a/src/pmxcfs/status.c +++ b/src/pmxcfs/status.c @@ -1234,16 +1234,10 @@ static void update_rrd_data(const char *key, gconstpointer data, size_t len) { create_rrd_file(filename, argcount, rrd_def_node); } - } else if ((strncmp(key, "pve2-vm/", 8) == 0) || (strncmp(key, "pve2.3-vm/", 10) == 0)) { - const char *vmid; + } else if (strncmp(key, "pve2.3-vm/", 10) == 0) { + const char *vmid = key + 10; - if (strncmp(key, "pve2-vm/", 8) == 0) { - vmid = key + 8; - skip = 2; - } else { - vmid = key + 10; - skip = 4; - } + skip = 4; if (strchr(vmid, '/') != NULL) { goto keyerror; -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel