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);
}

View File

@ -13,7 +13,7 @@ X-Plasma-EngineName=ext-sysmon
X-KDE-PluginInfo-Author=Evgeniy Alekseev aka arcanis
X-KDE-PluginInfo-Email=esalexeev@gmail.com
X-KDE-PluginInfo-Name=ext-sysmon
X-KDE-PluginInfo-Version=1.3
X-KDE-PluginInfo-Version=1.4
X-KDE-PluginInfo-Category=System Information
X-KDE-PluginInfo-Depends=
X-KDE-PluginInfo-License=GPL