Fix in superkaramba sensor network for linux

Signed-off-by: ormorph <roma251078@mail.ru>
(cherry picked from commit 844820e475)
r14.0.x r14.0.13
ormorph 2 years ago committed by Slávek Banko
parent b11853f934
commit ce28588f67
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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();

Loading…
Cancel
Save