summaryrefslogtreecommitdiff
path: root/lib/snmp/test/snmp_test_lib.erl
diff options
context:
space:
mode:
authorMicael Karlberg <bmk@erlang.org>2022-10-21 17:02:03 +0200
committerMicael Karlberg <bmk@erlang.org>2022-10-28 12:48:54 +0200
commit7f10f6a76a7900b347fbf810753162daa64fc480 (patch)
treec81927b578c44a52fefe08f7fe56f32e632473bd /lib/snmp/test/snmp_test_lib.erl
parent68ca84cdbc5915101d2b720b8aa9b89d92381191 (diff)
downloaderlang-7f10f6a76a7900b347fbf810753162daa64fc480.tar.gz
[snmp|test] Improve label check
Diffstat (limited to 'lib/snmp/test/snmp_test_lib.erl')
-rw-r--r--lib/snmp/test/snmp_test_lib.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/snmp/test/snmp_test_lib.erl b/lib/snmp/test/snmp_test_lib.erl
index 87475249fd..9dabc228be 100644
--- a/lib/snmp/test/snmp_test_lib.erl
+++ b/lib/snmp/test/snmp_test_lib.erl
@@ -1413,11 +1413,11 @@ linux_distro_str_to_distro_id(X) ->
%% end.
-simplify_label("Systemtap") ->
+simplify_label("Systemtap" ++ _) ->
{host, systemtap};
-simplify_label("Meamax") ->
+simplify_label("Meamax" ++ _) ->
{host, meamax};
-simplify_label("Cover") ->
+simplify_label("Cover" ++ _) ->
{host, cover};
simplify_label(Label) ->
case string:find(string:to_lower(Label), "docker") of
@@ -1432,7 +1432,7 @@ label2factor(docker) ->
label2factor({host, meamax}) ->
2;
label2factor({host, cover}) ->
- 4;
+ 6;
label2factor({host, _}) ->
0.