Release ext-sysmon 1.4

* fix #4
This commit is contained in:
arcan1s
2013-11-07 01:38:32 +04:00
parent ebb828dd4c
commit 946c0ea874
6 changed files with 7 additions and 7 deletions

View File

@ -32,7 +32,7 @@ ExtendedSysMon::ExtendedSysMon(QObject* parent, const QVariantList& args)
setMinimumPollingInterval(333);
FILE *f_out;
f_out = popen("lspci 2>&1", "r");
f_out = popen("lspci 2> /dev/null", "r");
char device[256];
QString dev;
while (fgets(device, 256, f_out) != NULL)
@ -45,10 +45,10 @@ ExtendedSysMon::ExtendedSysMon(QObject* parent, const QVariantList& args)
}
pclose(f_out);
f_out = popen("ls -1 /dev/sd[a-z] && ls -1 /dev/hd[a-z] 2>&1", "r");
f_out = popen("ls -1 /dev/sd[a-z] 2> /dev/null ; ls -1 /dev/hd[a-z] 2> /dev/null", "r");
while (fgets(device, 256, f_out) != NULL)
{
dev = QString(device);
dev = QString(device).split("\n")[0];
if (dev[0] == '/')
hdddev.append(dev);
}