X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=nodehistory.py;h=f68d7b957848712b854b1edbc08d826f6ec6e283;hb=refs%2Fheads%2F1.0;hp=e554e0a8fd88bbeaf4debeddd3491947135b219c;hpb=ff1455177461f5adf513543fd2a85289f359ff0e;p=monitor.git diff --git a/nodehistory.py b/nodehistory.py index e554e0a..f68d7b9 100755 --- a/nodehistory.py +++ b/nodehistory.py @@ -35,7 +35,8 @@ def get_filefromglob(d, str): def fb_print_nodeinfo(fbnode, verbose, date=None): if verbose: print " state | ssh | pcu | bootcd | category | kernel" if 'checked' in fbnode: - print "%11.11s " % diff_time(fbnode['checked']), + if date: print date, + #print "%11.11s " % diff_time(fbnode['checked']), else: if date: print date, else: print "Unknown", @@ -124,7 +125,6 @@ def main(): except KeyboardInterrupt: sys.exit(1) except: - #import traceback; print traceback.print_exc() print d.strftime("%Y-%m-%d"), "No record" d = d + tdelta