mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 23:47:20 +00:00
fixed ps
This commit is contained in:
parent
1c58b23fa2
commit
d1a0597b5f
@ -203,8 +203,8 @@ class DataEngine:
|
|||||||
elif (sourceName == "ps"):
|
elif (sourceName == "ps"):
|
||||||
updatedData['name'] = "ps"
|
updatedData['name'] = "ps"
|
||||||
updatedData['value'] = {}
|
updatedData['value'] = {}
|
||||||
updatedData['value']['num'] = data[QString(u'psCount')]
|
updatedData['value']['num'] = "%i" % (data[QString(u'psCount')])
|
||||||
updatedData['value']['total'] = data[QString(u'psTotal')]
|
updatedData['value']['total'] = "%i" % (data[QString(u'psTotal')])
|
||||||
updatedData['value']['list'] = data[QString(u'ps')]
|
updatedData['value']['list'] = data[QString(u'ps')]
|
||||||
elif (sourceName == "mem/swap/free"):
|
elif (sourceName == "mem/swap/free"):
|
||||||
updatedData['name'] = "swap"
|
updatedData['name'] = "swap"
|
||||||
|
@ -558,11 +558,9 @@ class pyTextWidget(plasmascript.Applet):
|
|||||||
line = line.split('$title')[0] + text['title'] + line.split('$title')[1]
|
line = line.split('$title')[0] + text['title'] + line.split('$title')[1]
|
||||||
elif (name == "ps"):
|
elif (name == "ps"):
|
||||||
if (line.split('$pscount')[0] != line):
|
if (line.split('$pscount')[0] != line):
|
||||||
ps = "%i" % (text['num'])
|
line = line.split('$pscount')[0] + text['num'] + line.split('$pscount')[1]
|
||||||
line = line.split('$pscount')[0] + ps + line.split('$pscount')[1]
|
|
||||||
if (line.split('$pstotal')[0] != line):
|
if (line.split('$pstotal')[0] != line):
|
||||||
ps = "%i" % (text['total'])
|
line = line.split('$pstotal')[0] + text['total'] + line.split('$pstotal')[1]
|
||||||
line = line.split('$pstotal')[0] + ps + line.split('$pstotal')[1]
|
|
||||||
if (line.split('$ps')[0] != line):
|
if (line.split('$ps')[0] != line):
|
||||||
line = line.split('$ps')[0] + text['list'] + line.split('$ps')[1]
|
line = line.split('$ps')[0] + text['list'] + line.split('$ps')[1]
|
||||||
elif (name == "time"):
|
elif (name == "time"):
|
||||||
|
Loading…
Reference in New Issue
Block a user