pmxcfs: status: remove string literal params for g_strdup_printf
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com> Tested-by: Maximiliano Sandoval <m.sandoval@proxmox.com> Reviewed-by: Maximiliano Sandoval <m.sandoval@proxmox.com> Link: https://lore.proxmox.com/20250801095431.117317-4-l.wagner@proxmox.com Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
c66917260e
commit
0795244f98
1 changed files with 2 additions and 2 deletions
|
|
@ -1429,7 +1429,7 @@ static void update_rrd_data(const char *key, gconstpointer data, size_t len) {
|
|||
}
|
||||
|
||||
filename = g_strdup_printf(RRDDIR "/pve-vm-9.0/%s", vmid);
|
||||
char *filename_pve2 = g_strdup_printf(RRDDIR "/%s/%s", "pve2-vm", vmid);
|
||||
char *filename_pve2 = g_strdup_printf(RRDDIR "/pve2-vm/%s", vmid);
|
||||
|
||||
int use_pve2_file = 0;
|
||||
|
||||
|
|
@ -1498,7 +1498,7 @@ static void update_rrd_data(const char *key, gconstpointer data, size_t len) {
|
|||
}
|
||||
|
||||
filename = g_strdup_printf(RRDDIR "/pve-storage-9.0/%s", node);
|
||||
char *filename_pve2 = g_strdup_printf(RRDDIR "/%s/%s", "pve2-storage", node);
|
||||
char *filename_pve2 = g_strdup_printf(RRDDIR "/pve2-storage/%s", node);
|
||||
|
||||
// check existing rrd files and directories
|
||||
if (g_file_test(filename, G_FILE_TEST_EXISTS)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue