diff options
author | ormorph <roma251078@mail.ru> | 2022-09-20 11:06:48 +0200 |
---|---|---|
committer | ormorph <roma251078@mail.ru> | 2022-09-21 13:59:16 +0200 |
commit | 844820e47532399e23e0b6a756046a1c77416071 (patch) | |
tree | b68f866d0b4ebd8e4bbe29bf4bc8fe0d360e8e35 /superkaramba | |
parent | 3e7fcfbb2d683b08a2aee8f97861e51c88b87a71 (diff) | |
download | tdeutils-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.cpp | 2 |
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(); |