From 472d08b98b5c48ed0bd0c0902cfe243a021cae55 Mon Sep 17 00:00:00 2001 From: Timo Behrendt Date: Tue, 25 Jun 2024 19:41:41 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20remove=20=C2=B0C=20from=20temperature=20?= =?UTF-8?q?string?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- k3shx/10gbe.conf | 2 +- k3shx/amd_cpu.conf | 2 +- k3shx/amd_gpu.conf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/k3shx/10gbe.conf b/k3shx/10gbe.conf index 9a9bf18..fd36f86 100644 --- a/k3shx/10gbe.conf +++ b/k3shx/10gbe.conf @@ -1 +1 @@ -UserParameter=mac_temperature,/usr/bin/sensors | grep 'MAC Temperature' | awk '{print $3}' | cut -d '+' -f 2 +UserParameter=mac_temperature,/usr/bin/sensors | grep 'MAC Temperature' | awk '{print $3}' | sed 's/+//; s/°C//' diff --git a/k3shx/amd_cpu.conf b/k3shx/amd_cpu.conf index e79878a..baa84ab 100644 --- a/k3shx/amd_cpu.conf +++ b/k3shx/amd_cpu.conf @@ -1 +1 @@ -UserParameter=cpu_temperature,/usr/bin/sensors | grep 'Tctl' | awk '{print $2}' | cut -d '+' -f 2 +UserParameter=cpu_temperature,/usr/bin/sensors | grep 'Tctl' | awk '{print $2}' | sed 's/+//; s/°C//' diff --git a/k3shx/amd_gpu.conf b/k3shx/amd_gpu.conf index fb41033..559e780 100644 --- a/k3shx/amd_gpu.conf +++ b/k3shx/amd_gpu.conf @@ -1 +1 @@ -UserParameter=gpu_temperature,/usr/bin/sensors | grep 'edge' | awk '{print $2}' | cut -d '+' -f 2 +UserParameter=gpu_temperature,/usr/bin/sensors | grep 'edge' | awk '{print $2}' | sed 's/+//; s/°C//'