MCPcopy Create free account
hub / github.com/numpy/numpy / summarise

Function summarise

tools/travis-sorter.py:91–103  ·  view source on GitHub ↗
(jobs)

Source from the content-addressed store, hash-verified

89
90
91def summarise(jobs):
92 end = 0
93 print("ID Duration in mins")
94 for job in jobs:
95 before = " " * job.started
96 active = "*" * job.length
97 print("{:2d} {}{}".format(job.id, before, active))
98 if job.started + job.length > end:
99 end = job.started + job.length
100 # for job in jobs:
101 # print(job)
102 print("End:", end)
103 print(" " + "-" * end)
104
105
106class Job:

Callers 1

simulateFunction · 0.85

Calls 1

printFunction · 0.85

Tested by

no test coverage detected