git-svn-id: svn://db.shs.com.ru/pip@516 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -112,7 +112,7 @@ public:
|
||||
local_info_base << TileList::Row("Architecture: " + PISystemInfo::instance()->architecture, CellFormat());
|
||||
local_info_base << TileList::Row(" CPU count: " + PIString::fromNumber(PISystemInfo::instance()->processorsCount), CellFormat());
|
||||
local_info_base << TileList::Row("", CellFormat());
|
||||
local_info_base << TileList::Row("PIThreads:", CellFormat());
|
||||
local_info_base << TileList::Row("Threads:", CellFormat());
|
||||
return ret;
|
||||
}
|
||||
PIScreenTile * peerDiagTile() {
|
||||
@@ -222,9 +222,9 @@ public:
|
||||
piForeachC (PISystemMonitor::ThreadStats & t, ts) {
|
||||
PIString line = PIString(++num).expandLeftTo(2, ' ') + ": ";
|
||||
line += PIString(t.name).expandRightTo(maxlen, ' ') + ": k ";
|
||||
PIString ns = PIString::fromNumber(t.cpu_load_kernel); ns = ns.left(ns.find('.') + 2);
|
||||
PIString ns = PIString::fromNumber(t.cpu_load_kernel).replaceAll(",", "."); ns = ns.left(ns.find('.') + 2);
|
||||
line += ns.expandLeftTo(5, ' ') + " %, u ";
|
||||
ns = PIString::fromNumber(t.cpu_load_user); ns = ns.left(ns.find('.') + 2);
|
||||
ns = PIString::fromNumber(t.cpu_load_user).replaceAll(",", "."); ns = ns.left(ns.find('.') + 2);
|
||||
line += ns.expandLeftTo(5, ' ') + " %";
|
||||
tile->content << TileList::Row(line, CellFormat());
|
||||
}
|
||||
@@ -393,6 +393,7 @@ int main(int argc, char * argv[]) {
|
||||
MainMenu * menu = new MainMenu(*daemon);
|
||||
if (sapp) CONNECTU(sapp, messageReceived, menu, messageFromApp);
|
||||
if (cli.hasArgument("silent")) {
|
||||
PICout::setBufferActive(false);
|
||||
PIKbdListener ls;
|
||||
ls.enableExitCapture(PIKbdListener::F10);
|
||||
ls.start();
|
||||
|
||||
Reference in New Issue
Block a user