commit | 651417c7c8662572de761c3b9260b1241ff21a79 | [log] [tgz] |
---|---|---|
author | Robert Greenwalt <robdroid@android.com> | Fri Apr 23 10:35:57 2010 -0700 |
committer | Robert Greenwalt <robdroid@android.com> | Fri Apr 23 10:35:57 2010 -0700 |
tree | 7a620e85628e6c30273c494b19961532086ba031 | |
parent | 31c61c80a013bd1a050f0f4103e13fba62bf1717 [diff] |
Fix the reading of /proc/net/dev When the bytes received counter gets too big it changes format from name: 10 ... name: 100 ... name:1000 ... The last one means sscanf can't parse a string and a long seperately - you just get a string. Fixed by detecting a char after ':', splitting the name and reparsing the long. bug:2612082 Change-Id: I84e41da1e38d24ea61f996ede9c87769abba5d22