add notifications

edit widget.qml
fix bug in monitor
This commit is contained in:
arcan1s
2015-02-04 05:20:00 +03:00
parent f01fd96cf6
commit bb88892125
6 changed files with 52 additions and 9 deletions

View File

@ -461,7 +461,7 @@ float ExtendedSysMon::getHddTemp(const QString cmd, const QString device)
break;
}
} else {
if (qoutput.split(QChar(':'), QString::SkipEmptyParts).count() < 3) {
if (qoutput.split(QChar(':'), QString::SkipEmptyParts).count() >= 3) {
QString temp = qoutput.split(QChar(':'), QString::SkipEmptyParts)[2];
temp.remove(QChar(0260)).remove(QChar('C'));
value = temp.toFloat();