Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
|||
nOut,maxOut,maxTimes:=0,-1,List();
|
||||
foreach job in (File("mlijobs.txt")){
|
||||
_,status,_,date:=job.split();
|
||||
nOut+=( if(status.toUpper()=="OUT") 1 else -1 );
|
||||
if(nOut>maxOut){ maxOut=nOut; maxTimes.clear(); }
|
||||
if(nOut==maxOut) maxTimes.append(date);
|
||||
}
|
||||
println(("Maximum simultaneous license use is %d at"
|
||||
" the following times:\n %s").fmt(maxOut,maxTimes.concat("\n")));
|
||||
Loading…
Add table
Add a link
Reference in a new issue