Fix gnt-job list with empty timestamps
authorIustin Pop <iustin@google.com>
Mon, 6 Oct 2008 13:40:52 +0000 (13:40 +0000)
committerIustin Pop <iustin@google.com>
Mon, 6 Oct 2008 13:40:52 +0000 (13:40 +0000)
commite0ec0ff6c054d0507760793da8f4f22c125243fa
treed36c47bd2b9022cbd3238b05400c693359cea374
parent1daae3849b10d6aa6634614c11e3bae8a6553d77
Fix gnt-job list with empty timestamps

In case the job object doesn't have a timestamp (which is a separate
issue), the listing should not break. We fix this by changing the
FormatTimstamp function itself to return '?' in case the timestamp
doesn't look good (note that it still can break if non-integers are
returned, but this is unlikely).

Reviewed-by: imsnah
lib/cli.py