mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-25 07:57:19 +00:00
Remove set locale from dataengine
This commit is contained in:
parent
1323d6d647
commit
4f7cb6aa3c
4
PKGBUILD
4
PKGBUILD
@ -4,7 +4,7 @@
|
|||||||
pkgname=kdeplasma-applets-pytextmonitor
|
pkgname=kdeplasma-applets-pytextmonitor
|
||||||
_pkgname=py-text-monitor
|
_pkgname=py-text-monitor
|
||||||
pkgver=1.3.4
|
pkgver=1.3.4
|
||||||
pkgrel=4
|
pkgrel=5
|
||||||
_dtengine=ext-sysmon
|
_dtengine=ext-sysmon
|
||||||
_dtver=1.2
|
_dtver=1.2
|
||||||
pkgdesc="Minimalistic Plasmoid script written on Python2. It looks like widgets in awesome-wm"
|
pkgdesc="Minimalistic Plasmoid script written on Python2. It looks like widgets in awesome-wm"
|
||||||
@ -20,7 +20,7 @@ source=(https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/$
|
|||||||
https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_dtengine}-${_dtver}.zip)
|
https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_dtengine}-${_dtver}.zip)
|
||||||
install=${pkgname}.install
|
install=${pkgname}.install
|
||||||
md5sums=('cdc55960177a07b52ab0a2713f5df212'
|
md5sums=('cdc55960177a07b52ab0a2713f5df212'
|
||||||
'eab8d084bad5bd6791005ccc93a46676')
|
'9dfc23f75d330fcb3b8a9cfa20b7717a')
|
||||||
|
|
||||||
build ()
|
build ()
|
||||||
{
|
{
|
||||||
|
Binary file not shown.
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
#include <Plasma/DataContainer>
|
#include <Plasma/DataContainer>
|
||||||
|
|
||||||
#include <locale.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
ExtendedSysMon::ExtendedSysMon(QObject* parent, const QVariantList& args)
|
ExtendedSysMon::ExtendedSysMon(QObject* parent, const QVariantList& args)
|
||||||
@ -10,9 +9,6 @@ ExtendedSysMon::ExtendedSysMon(QObject* parent, const QVariantList& args)
|
|||||||
{
|
{
|
||||||
Q_UNUSED(args)
|
Q_UNUSED(args)
|
||||||
|
|
||||||
// QLocale::setDefault(QLocale::C);
|
|
||||||
setlocale (LC_ALL, "C");
|
|
||||||
|
|
||||||
setMinimumPollingInterval(333);
|
setMinimumPollingInterval(333);
|
||||||
|
|
||||||
FILE *f_out;
|
FILE *f_out;
|
||||||
@ -98,6 +94,7 @@ bool ExtendedSysMon::updateSourceEvent(const QString &source)
|
|||||||
}
|
}
|
||||||
if (ok == false)
|
if (ok == false)
|
||||||
value = QString(" N\\A");
|
value = QString(" N\\A");
|
||||||
|
value = value.split(QString(","), QString::SkipEmptyParts).join(QString("."));
|
||||||
setData(source, key, value);
|
setData(source, key, value);
|
||||||
}
|
}
|
||||||
else if (source == QString("gputemp"))
|
else if (source == QString("gputemp"))
|
||||||
@ -139,6 +136,7 @@ bool ExtendedSysMon::updateSourceEvent(const QString &source)
|
|||||||
}
|
}
|
||||||
if (ok == false)
|
if (ok == false)
|
||||||
value = QString(" N\\A");
|
value = QString(" N\\A");
|
||||||
|
value = value.split(QString(","), QString::SkipEmptyParts).join(QString("."));
|
||||||
setData(source, key, value);
|
setData(source, key, value);
|
||||||
}
|
}
|
||||||
else if (source == QString("hddtemp"))
|
else if (source == QString("hddtemp"))
|
||||||
@ -164,6 +162,7 @@ bool ExtendedSysMon::updateSourceEvent(const QString &source)
|
|||||||
pclose(f_out);
|
pclose(f_out);
|
||||||
if (ok == false)
|
if (ok == false)
|
||||||
value = QString(" N\\A");
|
value = QString(" N\\A");
|
||||||
|
value = value.split(QString(","), QString::SkipEmptyParts).join(QString("."));
|
||||||
setData(source, hdddev[i], value);
|
setData(source, hdddev[i], value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user