mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-26 20:19:55 +00:00
use MSD for battery calculations, fix segfault
This commit is contained in:
@ -106,7 +106,9 @@ QStringList AWDataEngineMapper::registerSource(const QString &_source,
|
||||
QString key = _source;
|
||||
key.remove("battery/");
|
||||
m_map[_source] = key;
|
||||
m_formatter[key] = AWKeysAggregator::FormatterType::IntegerThree;
|
||||
m_formatter[key] = _source.contains("rate")
|
||||
? AWKeysAggregator::FormatterType::Float
|
||||
: AWKeysAggregator::FormatterType::IntegerThree;
|
||||
} else if (_source == "cpu/system/TotalLoad") {
|
||||
// cpu
|
||||
m_map[_source] = "cpu";
|
||||
|
Reference in New Issue
Block a user