summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorormorph <[email protected]>2022-09-20 11:06:48 +0200
committerormorph <[email protected]>2022-09-21 13:59:16 +0200
commit844820e47532399e23e0b6a756046a1c77416071 (patch)
treeb68f866d0b4ebd8e4bbe29bf4bc8fe0d360e8e35
parent3e7fcfbb2d683b08a2aee8f97861e51c88b87a71 (diff)
downloadtdeutils-844820e47532399e23e0b6a756046a1c77416071.tar.gz
tdeutils-844820e47532399e23e0b6a756046a1c77416071.zip
Fix in superkaramba sensor network for linux
Signed-off-by: ormorph <[email protected]>
-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();