mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-08 03:15:51 +00:00
fix bug introduced by 5c474e822b
No conversion has been applied for total memory values
This commit is contained in:
@ -34,8 +34,8 @@ AWKeysAggregator::AWKeysAggregator(QObject *parent)
|
|||||||
// default formaters
|
// default formaters
|
||||||
// memory
|
// memory
|
||||||
m_formater[QString("mem")] = FormaterType::Float;
|
m_formater[QString("mem")] = FormaterType::Float;
|
||||||
m_formater[QString("memtotmb")] = FormaterType::IntegerFive;
|
m_formater[QString("memtotmb")] = FormaterType::MemMBFormat;
|
||||||
m_formater[QString("memtotgb")] = FormaterType::Float;
|
m_formater[QString("memtotgb")] = FormaterType::MemGBFormat;
|
||||||
// network
|
// network
|
||||||
m_formater[QString("down")] = FormaterType::NetSmartFormat;
|
m_formater[QString("down")] = FormaterType::NetSmartFormat;
|
||||||
m_formater[QString("downkb")] = FormaterType::Integer;
|
m_formater[QString("downkb")] = FormaterType::Integer;
|
||||||
@ -45,8 +45,8 @@ AWKeysAggregator::AWKeysAggregator(QObject *parent)
|
|||||||
m_formater[QString("upunits")] = FormaterType::NetSmartUnits;
|
m_formater[QString("upunits")] = FormaterType::NetSmartUnits;
|
||||||
// swap
|
// swap
|
||||||
m_formater[QString("swap")] = FormaterType::Float;
|
m_formater[QString("swap")] = FormaterType::Float;
|
||||||
m_formater[QString("swaptotmb")] = FormaterType::IntegerFive;
|
m_formater[QString("swaptotmb")] = FormaterType::MemMBFormat;
|
||||||
m_formater[QString("swaptotgb")] = FormaterType::Float;
|
m_formater[QString("swaptotgb")] = FormaterType::MemGBFormat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -336,8 +336,9 @@ QStringList AWKeysAggregator::registerSource(const QString &source,
|
|||||||
m_formater[key] = FormaterType::Float;
|
m_formater[key] = FormaterType::Float;
|
||||||
// additional keys
|
// additional keys
|
||||||
m_formater[QString("hddtotmb%1").arg(index)]
|
m_formater[QString("hddtotmb%1").arg(index)]
|
||||||
= FormaterType::IntegerFive;
|
= FormaterType::MemMBFormat;
|
||||||
m_formater[QString("hddtotgb%1").arg(index)] = FormaterType::Float;
|
m_formater[QString("hddtotgb%1").arg(index)]
|
||||||
|
= FormaterType::MemGBFormat;
|
||||||
}
|
}
|
||||||
} else if (source.contains(mountFreeRegExp)) {
|
} else if (source.contains(mountFreeRegExp)) {
|
||||||
// free space
|
// free space
|
||||||
|
Reference in New Issue
Block a user