diff options
author | ormorph <roma251078@mail.ru> | 2022-09-20 11:06:48 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2022-09-21 13:52:58 +0200 |
commit | ce28588f6751bf729c27c1817fc462eea3880699 (patch) | |
tree | 401edc5dca6c31536b7da8893b1c9c70e7ac188b /superkaramba | |
parent | b11853f9345e3edd43f6a2550c8790351656cf0f (diff) | |
download | tdeutils-r14.0.x.tar.gz tdeutils-r14.0.x.zip |
Signed-off-by: ormorph <roma251078@mail.ru>
(cherry picked from commit 844820e47532399e23e0b6a756046a1c77416071)
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(); |