File 4091-snmp-test-Tweaked-factor-calculation-for-docker.patch of Package erlang
From 2ff0a8e47346e6303e97812a6c3a789bee920f2d Mon Sep 17 00:00:00 2001
From: Micael Karlberg <bmk@erlang.org>
Date: Tue, 9 Jul 2024 18:14:51 +0200
Subject: [PATCH 1/6] [snmp|test] Tweaked factor calculation (for docker)
---
lib/snmp/test/snmp_test_lib.erl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/snmp/test/snmp_test_lib.erl b/lib/snmp/test/snmp_test_lib.erl
index 97b69dcfa5..88be9643c1 100644
--- a/lib/snmp/test/snmp_test_lib.erl
+++ b/lib/snmp/test/snmp_test_lib.erl
@@ -1468,7 +1468,7 @@ analyze_and_print_linux_host_info(Version) ->
_ ->
5
end,
- AddLabelFactor = label2factor(Label),
+ AddLabelFactor = label2factor(simplify_label(Label)),
%% Check if we need to adjust the factor because of the memory
AddMemFactor = try linux_which_meminfo()
catch _:_:_ -> 0
--
2.43.0