From d16fe38c27c7e136a8ac581486c73d015e77951b Mon Sep 17 00:00:00 2001 From: jerry048 Date: Mon, 27 Feb 2023 03:14:56 +0800 Subject: [PATCH] Update tweaking.sh --- tweaking.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweaking.sh b/tweaking.sh index 90c088d..57a185b 100644 --- a/tweaking.sh +++ b/tweaking.sh @@ -120,7 +120,7 @@ function kernel_Tweaking { interface=$(/sbin/ip -o -4 route show to default | awk '{print $5}') nic_speed=$(ethtool $interface | grep Speed | awk '{print $2}' | tr -d -c 0-9) - if (($nic_speed = 10000)); then + if (($nic_speed == 10000)); then rmem_default=33554432 rmem_max=67108864 wmem_default=67108864