HEX
Server: LiteSpeed
System: Linux dal1.hostclusters.com 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64
User: vslw (1496)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/tracer/views/resource/processes.py
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()))