From ce28588f6751bf729c27c1817fc462eea3880699 Mon Sep 17 00:00:00 2001 From: ormorph Date: Tue, 20 Sep 2022 11:06:48 +0200 Subject: Fix in superkaramba sensor network for linux Signed-off-by: ormorph (cherry picked from commit 844820e47532399e23e0b6a756046a1c77416071) --- superkaramba/src/networksensor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superkaramba/src/networksensor.cpp b/superkaramba/src/networksensor.cpp index 2320a6a..34cff5c 100644 --- a/superkaramba/src/networksensor.cpp +++ b/superkaramba/src/networksensor.cpp @@ -108,7 +108,7 @@ void NetworkSensor::getInOutBytes ( unsigned long &in,unsigned long &out) const } if ( line.contains( device ) ) { - TQRegExp rx( "\\W+"+device+":\\D*(\\d+)(?:\\D+\\d+){7}\\D+(\\d+)", false); + TQRegExp rx( "^\\W*"+device+":\\D*(\\d+)(?:\\D+\\d+){7}\\D+(\\d+)", false); rx.search(line); in = rx.cap(1).toULong(); out = rx.cap(2).toULong(); -- cgit v1.2.1