summaryrefslogtreecommitdiffstats
path: root/superkaramba
diff options
context:
space:
mode:
authorormorph <roma251078@mail.ru>2022-09-20 11:06:48 +0200
committerormorph <roma251078@mail.ru>2022-09-21 13:59:16 +0200
commit844820e47532399e23e0b6a756046a1c77416071 (patch)
treeb68f866d0b4ebd8e4bbe29bf4bc8fe0d360e8e35 /superkaramba
parent3e7fcfbb2d683b08a2aee8f97861e51c88b87a71 (diff)
downloadtdeutils-844820e47532399e23e0b6a756046a1c77416071.tar.gz
tdeutils-844820e47532399e23e0b6a756046a1c77416071.zip
Fix in superkaramba sensor network for linux
Signed-off-by: ormorph <roma251078@mail.ru>
Diffstat (limited to 'superkaramba')
-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();