File xosview-1.9.2-irda.patch of Package xosview
--- linux/netmeter.cc
+++ linux/netmeter.cc 2012-02-01 09:21:43.878434351 +0000
@@ -213,11 +213,21 @@ void NetMeter::checkeventNew(void)
ifs >> ig >> ig >> ig >> ig >> ig >> ig >> ig >> out;
}
- if (!ifs.eof())
- {
- totin += in;
- totout += out;
- }
+ if (ifs.eof())
+ {
+ ifs.ignore(1024, '\n');
+ break;
+ }
+
+ if (ifs.fail())
+ {
+ ifs.clear();
+ ifs.ignore(1024, '\n');
+ continue;
+ }
+
+ totin += in;
+ totout += out;
ifs.ignore(1024, '\n');
}