Server : Apache System : Linux server.lienzindia.com 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64 User : plutus ( 1007) PHP Version : 7.4.33 Disable Function : NONE Directory : /lib/python3.6/site-packages/tracer/views/resource/ |
Upload File : |
from __future__ import unicode_literals from .. import View class ProcessesView(View): def render(self): line = "{0:<10}{1:<20}{2:<20}{3:<10}" print(line.format("PID", "Time running", "User", "Process")) print(100 * "-") for process in self.args.processes.sorted("create_time"): print(line.format(process.pid, process.str_started_ago, process.username(), process.name()))