From 9ebe19230682f94f35a558a3cf75976be81f3ccc Mon Sep 17 00:00:00 2001 From: digimer Date: Sun, 23 Jul 2023 15:37:23 -0400 Subject: [PATCH] This fixes a variable substitution but, addressing issue #338. Signed-off-by: digimer --- scancore-agents/scan-server/scan-server | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scancore-agents/scan-server/scan-server b/scancore-agents/scan-server/scan-server index 6f1d778d..f05c96a3 100755 --- a/scancore-agents/scan-server/scan-server +++ b/scancore-agents/scan-server/scan-server @@ -885,10 +885,10 @@ DELETED - Marks a server as no longer existing # config change. my $variables = { server => $server_name, - old_ram_in_use_short => $anvil->Convert->bytes_to_human_readable({'bytes' => $server_ram_in_use}), - old_ram_in_use_bytes => $anvil->Convert->add_commas({number => $server_ram_in_use}), - new_ram_in_use_short => $anvil->Convert->bytes_to_human_readable({'bytes' => $old_server_ram_in_use}), - new_ram_in_use_bytes => $anvil->Convert->add_commas({number => $old_server_ram_in_use}), + old_ram_in_use_short => $anvil->Convert->bytes_to_human_readable({'bytes' => $old_server_ram_in_use}), + old_ram_in_use_bytes => $anvil->Convert->add_commas({number => $old_server_ram_in_use}), + new_ram_in_use_short => $anvil->Convert->bytes_to_human_readable({'bytes' => $server_ram_in_use}), + new_ram_in_use_bytes => $anvil->Convert->add_commas({number => $server_ram_in_use}), }; $anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 1, key => "scan_server_alert_0013", variables => $variables}); $anvil->Alert->register({alert_level => "notice", message => "scan_server_alert_0013", variables => $variables, set_by => $THIS_FILE});