Commit ee57464f authored by Luke Macken's avatar Luke Macken

Ubuntu's psutil doesn't have a Process.terminal attr

parent bf7d4d08
......@@ -429,7 +429,7 @@ class PyrasiteWindow(Gtk.Window):
<li><b>nice:</b> %s</li>
</ul>
""" % (proc.title, p.status, p.getcwd(), ' '.join(p.cmdline),
p.terminal, time.ctime(p.create_time),
getattr(p, 'terminal', 'unknown'), time.ctime(p.create_time),
p.username, p.uids.real, p.gids.real, p.nice)
self.details_view.load_string(self.details_html, "text/html",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment