File 5615-megaco-test-Adjust-factor-calculation.patch of Package erlang

From 5daf00f1805019154f8a3b0451e5aa9060de40d3 Mon Sep 17 00:00:00 2001
From: Micael Karlberg <bmk@erlang.org>
Date: Tue, 14 Apr 2020 08:53:49 +0200
Subject: [PATCH 5/8] [megaco|test] Adjust factor calculation

---
 lib/megaco/test/megaco_test_lib.erl | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/lib/megaco/test/megaco_test_lib.erl b/lib/megaco/test/megaco_test_lib.erl
index 1260bd77f2..443179db60 100644
--- a/lib/megaco/test/megaco_test_lib.erl
+++ b/lib/megaco/test/megaco_test_lib.erl
@@ -654,22 +654,22 @@ analyze_and_print_linux_host_info(Version) ->
                           "~n", [CPU, BogoMIPS, str_num_schedulers()]),
                 %% We first assume its a float, and if not try integer
                 try list_to_float(string:trim(BogoMIPS)) of
-                    F when F > 4000 ->
+                    F when F > 5000 ->
                         1;
-                    F when F > 1000 ->
+                    F when F > 2000 ->
                         2;
-                    F when F > 500 ->
+                    F when F > 1000 ->
                         3;
                     _ ->
                         5
                 catch
                     _:_:_ ->
                         try list_to_integer(string:trim(BogoMIPS)) of
-                            I when I > 4000 ->
+                            I when I > 5000 ->
                                 1;
-                            I when I > 1000 ->
+                            I when I > 2000 ->
                                 2;
-                            I when I > 500 ->
+                            I when I > 1000 ->
                                 3;
                             _ ->
                                 5
-- 
2.16.4

openSUSE Build Service is sponsored by