From 8be925b74cdd11c88de7cfc25645d6ca82d510a4 Mon Sep 17 00:00:00 2001 From: Oleksii Shevchuk Date: Thu, 16 Mar 2017 18:02:23 +0200 Subject: [PATCH] Add pid to w output --- pupy/modules/w.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pupy/modules/w.py b/pupy/modules/w.py index 017f2a0e..206bea81 100644 --- a/pupy/modules/w.py +++ b/pupy/modules/w.py @@ -52,6 +52,7 @@ class WModule(PupyModule): object.update({ 'IDLE': str(timedelta(seconds=session['idle'])), + 'PID': session.get('pid', ''), 'WHAT': what })