From 5f751860e583a51afcf33e957b7d7440e9d80b92 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Tue, 19 Dec 2023 18:09:26 +0100 Subject: [PATCH] fix: [0km] prevent rrdtool from messing data in specific locale settings French for instance would make ``rrdtool`` use commas instead of points that are not read correctly by ``gnuplot``. --- bin/0km | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/0km b/bin/0km index 085e75b..3cc5651 100755 --- a/bin/0km +++ b/bin/0km @@ -1348,6 +1348,8 @@ cmdline.spec::cmd:vps-stats:run() { } >&2 export GNUTERM=qt + ## rrdtool fetch will use comma for floating point depending on some locals ! + export LC_ALL=C exec {PFD}> >(exec gnuplot 2>/dev/null) gnuplot_pid="$!" if [ -z "$opt_follow" ]; then