chiark / gitweb /
systemctl: ellipsize job list only when necessary, highlight running
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 10 Apr 2013 22:30:19 +0000 (18:30 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 10 Apr 2013 23:46:49 +0000 (19:46 -0400)
commit75add28aa17678fbf5b10947027efe7ac75d113d
tree5ab5e810ed9401877c561b15c963b5a8fa5679a5
parentb8a2b0f76b133524224d384641e124b7f6c5b9af
systemctl: ellipsize job list only when necessary, highlight running

I was debugging systemd waiting on a missing disk, and noticed
that the job listing could use some polishing. Jobs that are
actually running are highlighted, so it's easier to see what
very actually waiting for.

Also, the needed widths are precalculated, to use available columns
more ecomically.
src/shared/util.h
src/systemctl/systemctl.c