fix issue with invalid (up|down)total($|kb) calculation (see #127)

also renamed *total* tags to *tot* for consistency with other tags:

  * uptotal.* -> uptot.*
  * downtotal.* -> downtot.*
  * pstotal -> pstot
This commit is contained in:
2017-07-24 15:07:36 +03:00
parent d2e6f2fe38
commit 5e08434835
7 changed files with 23 additions and 20 deletions

View File

@ -147,8 +147,8 @@ QStringList AWKeyCache::getRequiredKeys(const QStringList &_keys,
used << "swapgb"
<< "swapfreegb";
// network keys
QStringList netKeys({"up", "upkb", "uptotal", "uptotalkb", "upunits",
"down", "downkb", "downtotal", "downtotalkb",
QStringList netKeys({"up", "upkb", "uptot", "uptotkb", "upunits",
"down", "downkb", "downtot", "downtotkb",
"downunits"});
for (auto &key : netKeys) {
if (!used.contains(key))