Text processing/Max licenses in use: Difference between revisions
Added 11l
Thundergnat (talk | contribs) m (Regularize non-standard header markup) |
Alextretyak (talk | contribs) (Added 11l) |
||
Line 16:
Mirror of log file available as a zip [https://github.com/thundergnat/rc/blob/master/resouces/mlijobs.zip here] (offsite mirror).
<br><br>
=={{header|11l}}==
{{trans|Python}}
<lang 11l>V out = 0
V max_out = -1
[String] max_times
L(job) File(‘mlijobs.txt’).read_lines()
out += I ‘OUT’ C job {1} E -1
I out > max_out
max_out = out
max_times.clear()
I out == max_out
max_times.append(job.split(‘ ’)[3])
print(‘Maximum simultaneous license use is #. at the following times:’.format(max_out))
print(‘ ’max_times.join("\n "))</lang>
{{out}}
<pre>
Maximum simultaneous license use is 99 at the following times:
2008/10/03_08:39:34
2008/10/03_08:40:40
</pre>
=={{header|Ada}}==
|