Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,27 @@
|
|||
#!/usr/bin/perl -w
|
||||
use strict;
|
||||
|
||||
my $out = 0;
|
||||
my $max_out = -1;
|
||||
my @max_times;
|
||||
|
||||
open FH, '<mlijobs.txt' or die "Can't open file: $!";
|
||||
while (<FH>) {
|
||||
chomp;
|
||||
if (/OUT/) {
|
||||
$out++;
|
||||
} else {
|
||||
$out--;
|
||||
}
|
||||
if ($out > $max_out) {
|
||||
$max_out = $out;
|
||||
@max_times = ();
|
||||
}
|
||||
if ($out == $max_out) {
|
||||
push @max_times, (split)[3];
|
||||
}
|
||||
}
|
||||
close FH;
|
||||
|
||||
print "Maximum simultaneous license use is $max_out at the following times:\n";
|
||||
print " $_\n" foreach @max_times;
|
||||
Loading…
Add table
Add a link
Reference in a new issue