| 154 | } |
| 155 | |
| 156 | void SystemStateInfo::ReadCurrentProcNetDev() { |
| 157 | string path = "/proc/net/dev"; |
| 158 | faststring buf; |
| 159 | if (!ReadFileOrWarn(path, &buf)) return; |
| 160 | ReadProcNetDevString(buf.ToString()); |
| 161 | } |
| 162 | |
| 163 | void SystemStateInfo::ReadProcNetDevString(const string& dev_string) { |
| 164 | net_val_idx_ = 1 - net_val_idx_; |