Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,24 @@
|
|||
import "io" for File
|
||||
|
||||
var lines = File.read("mlijobs.txt").replace("\r", "").split("\n")
|
||||
var out = 0
|
||||
var max = 0
|
||||
var times = []
|
||||
for (line in lines) {
|
||||
if (line.startsWith("License OUT")) {
|
||||
out = out + 1
|
||||
if (out >= max) {
|
||||
var sp = line.split(" ")
|
||||
if (out > max) {
|
||||
max = out
|
||||
times.clear()
|
||||
}
|
||||
times.add(sp[3])
|
||||
}
|
||||
} else if (line.startsWith("License IN")) {
|
||||
out = out - 1
|
||||
}
|
||||
}
|
||||
|
||||
System.print("The maximum licenses that were out = %(max) at time(s):")
|
||||
System.print(" " + times.join("\n "))
|
||||
Loading…
Add table
Add a link
Reference in a new issue