summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorormorph <roma251078@mail.ru>2022-09-20 11:06:48 +0200
committerSlávek Banko <slavek.banko@axis.cz>2022-09-21 13:52:58 +0200
commitce28588f6751bf729c27c1817fc462eea3880699 (patch)
tree401edc5dca6c31536b7da8893b1c9c70e7ac188b
parentb11853f9345e3edd43f6a2550c8790351656cf0f (diff)
downloadtdeutils-r14.0.x.tar.gz
tdeutils-r14.0.x.zip
Fix in superkaramba sensor network for linuxr14.0.13r14.0.x
Signed-off-by: ormorph <roma251078@mail.ru> (cherry picked from commit 844820e47532399e23e0b6a756046a1c77416071)
-rw-r--r--superkaramba/src/networksensor.cpp2
1 files changed, 1 insertions, 1 deletions
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();