mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-25 07:57:19 +00:00
fix
This commit is contained in:
parent
cf39fba9c2
commit
f8a02a48ac
@ -662,7 +662,7 @@ void ExtendedSysMon::setPs(int exitCode, QProcess::ExitStatus exitStatus)
|
|||||||
psList.append(qoutput.split(QChar('\n'), QString::SkipEmptyParts)[i]);
|
psList.append(qoutput.split(QChar('\n'), QString::SkipEmptyParts)[i]);
|
||||||
QString source = QString("ps");
|
QString source = QString("ps");
|
||||||
QString key = QString("psCount");
|
QString key = QString("psCount");
|
||||||
setData(source, key, int(QString::number(psList.count())));
|
setData(source, key, psList.count());
|
||||||
key = QString("ps");
|
key = QString("ps");
|
||||||
setData(source, key, psList.join(QString(",")));
|
setData(source, key, psList.join(QString(",")));
|
||||||
}
|
}
|
||||||
@ -670,7 +670,7 @@ void ExtendedSysMon::setPs(int exitCode, QProcess::ExitStatus exitStatus)
|
|||||||
// pstotal
|
// pstotal
|
||||||
QString source = QString("ps");
|
QString source = QString("ps");
|
||||||
QString key = QString("psTotal");
|
QString key = QString("psTotal");
|
||||||
setData(source, key, int(QString::number(qoutput.split(QChar('\n'), QString::SkipEmptyParts).count())));
|
setData(source, key, qoutput.split(QChar('\n'), QString::SkipEmptyParts).count());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user