summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-03-30 21:30:06 +0100
committerGitHub <noreply@github.com>2024-03-30 21:30:06 +0100
commit89a6299156b86ac838462fd60af196dcb0d8877c (patch)
treeef6c6140587b4975ddb5b61e50e7bc5b93a0dce8 /smoketest
parenta95063831f83dcfe458691b86407b70107b700ad (diff)
parent6927c0b622c8feaece907944bae3d4724f1e55a0 (diff)
downloadvyos-1x-89a6299156b86ac838462fd60af196dcb0d8877c.tar.gz
vyos-1x-89a6299156b86ac838462fd60af196dcb0d8877c.zip
Merge pull request #3218 from dmbaturin/half-cpus
accel-ppp: T6187: use correct CPU counts adjusted for SMT
Diffstat (limited to 'smoketest')
-rw-r--r--smoketest/scripts/cli/base_accel_ppp_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/smoketest/scripts/cli/base_accel_ppp_test.py b/smoketest/scripts/cli/base_accel_ppp_test.py
index ac4bbcfe5..cc27cfbe9 100644
--- a/smoketest/scripts/cli/base_accel_ppp_test.py
+++ b/smoketest/scripts/cli/base_accel_ppp_test.py
@@ -21,7 +21,7 @@ from configparser import ConfigParser
from vyos.configsession import ConfigSession
from vyos.configsession import ConfigSessionError
from vyos.template import is_ipv4
-from vyos.utils.system import get_half_cpus
+from vyos.cpu import get_core_count
from vyos.utils.process import process_named_running
from vyos.utils.process import cmd
@@ -132,7 +132,7 @@ class BasicAccelPPPTest:
return out
def verify(self, conf):
- self.assertEqual(conf["core"]["thread-count"], str(get_half_cpus()))
+ self.assertEqual(conf["core"]["thread-count"], str(get_core_count()))
def test_accel_name_servers(self):
# Verify proper Name-Server configuration for IPv4 and IPv6