rda-python-metrics 1.0.38__py3-none-any.whl → 1.0.40__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rda-python-metrics might be problematic. Click here for more details.
- rda_python_metrics/logarch.py +9 -3
- {rda_python_metrics-1.0.38.dist-info → rda_python_metrics-1.0.40.dist-info}/METADATA +1 -1
- {rda_python_metrics-1.0.38.dist-info → rda_python_metrics-1.0.40.dist-info}/RECORD +7 -7
- {rda_python_metrics-1.0.38.dist-info → rda_python_metrics-1.0.40.dist-info}/WHEEL +0 -0
- {rda_python_metrics-1.0.38.dist-info → rda_python_metrics-1.0.40.dist-info}/entry_points.txt +0 -0
- {rda_python_metrics-1.0.38.dist-info → rda_python_metrics-1.0.40.dist-info}/licenses/LICENSE +0 -0
- {rda_python_metrics-1.0.38.dist-info → rda_python_metrics-1.0.40.dist-info}/top_level.txt +0 -0
rda_python_metrics/logarch.py
CHANGED
|
@@ -300,6 +300,7 @@ def append_dssdb_sublog():
|
|
|
300
300
|
#
|
|
301
301
|
def add_sublog_files(fext, sext, minsize = 0):
|
|
302
302
|
|
|
303
|
+
cdate = PgUtil.curdate()
|
|
303
304
|
subname = 'rdaqsub'
|
|
304
305
|
pattern = r'^(\d+)\.'
|
|
305
306
|
afiles = PgFile.local_glob("{}/*.{}".format(subname, fext), 3, PgLOG.LGWNEX)
|
|
@@ -314,22 +315,27 @@ def add_sublog_files(fext, sext, minsize = 0):
|
|
|
314
315
|
for afile in afiles:
|
|
315
316
|
fcnt += 1
|
|
316
317
|
finfo = afiles[afile]
|
|
317
|
-
sfiles[op.basename(afile)] =
|
|
318
|
+
sfiles[op.basename(afile)] = [finfo['date_modified'], finfo['time_modified'], finfo['logname']]
|
|
318
319
|
|
|
319
320
|
afiles = sorted(sfiles)
|
|
320
321
|
logfile = "PBS_sublog.{}".format(sext)
|
|
321
322
|
for afile in afiles:
|
|
323
|
+
ary = sfiles[afile]
|
|
322
324
|
ms = re.match(pattern, afile)
|
|
323
325
|
if ms:
|
|
324
326
|
bid = int(ms.group(1))
|
|
325
|
-
if bid not in BIDS:
|
|
327
|
+
if bid not in BIDS:
|
|
328
|
+
if PgUtil.diffdate(cdate, ary[0]) > 6:
|
|
329
|
+
BIDS[bid] = 0
|
|
330
|
+
else:
|
|
331
|
+
BIDS[bid] = PgSIG.check_pbs_process(bid, afile)
|
|
326
332
|
if BIDS[bid] > 0: continue
|
|
327
333
|
else:
|
|
328
334
|
continue
|
|
329
335
|
|
|
330
336
|
sfile = "{}/{}".format(subname, afile)
|
|
331
337
|
if minsize and PgFile.local_file_size(sfile, 1) < 1: continue
|
|
332
|
-
PgLOG.pgsystem("echo '{}: {}' >> {}".format(bid,
|
|
338
|
+
PgLOG.pgsystem("echo '{}: {} {} {}' >> {}".format(bid, ary[0], ary[1], ary[2], logfile), PgLOG.LGWNEX, 5+1024)
|
|
333
339
|
if PgLOG.pgsystem("cat {} >> {}".format(sfile, logfile), PgLOG.EMEROL, 5+1024):
|
|
334
340
|
PgFile.delete_local_file(sfile, PgLOG.LOGWRN)
|
|
335
341
|
acnt += 1
|
|
@@ -25,7 +25,7 @@ rda_python_metrics/filltdsusage.py,sha256=vOwVzAtWUHO4O-FCSJMg0GKxw-Xc5AzSbfqVFk
|
|
|
25
25
|
rda_python_metrics/filltdsusage.usg,sha256=yqTHRe8WpZWpu3gso_obgt6LO41-JC27rTIDfdZcISo,538
|
|
26
26
|
rda_python_metrics/filluser.py,sha256=CvaMRaUPaR9nxJAExkLTb3Ci4sD7RQMOpWhWJdbyMF0,8907
|
|
27
27
|
rda_python_metrics/filluser.usg,sha256=Xgqi0QwA9-4jpYj3L4Q4TISpVwRlsomt2G7T0oYAFak,520
|
|
28
|
-
rda_python_metrics/logarch.py,sha256=
|
|
28
|
+
rda_python_metrics/logarch.py,sha256=8OFirXeO24dljXQPbNJqGDvP9F0qWK11VHSw38CdUuM,13896
|
|
29
29
|
rda_python_metrics/logarch.usg,sha256=6ksFxu_-lzhRpQE2YFAqgGVhwFP4PTweCbFBuGhhICU,960
|
|
30
30
|
rda_python_metrics/pgperson.py,sha256=4XTDnVBFyF9drzx2I_DGCxQ-8I1bpclqTuQvOx3wST4,2088
|
|
31
31
|
rda_python_metrics/pgsyspath.py,sha256=DZhFp-r-LzN0qrHtfdCYfnGDnmD_R4ufuEduk0_vRIw,1039
|
|
@@ -50,9 +50,9 @@ rda_python_metrics/viewwebfile.py,sha256=HSMNkQQawonu6W3blV7g9UbJuNy9VAOn9COqgmj
|
|
|
50
50
|
rda_python_metrics/viewwebfile.usg,sha256=lTNi8Yu8BUJuExEDJX-vsJyWUSUIQTS-DiiBEVFo33s,10054
|
|
51
51
|
rda_python_metrics/viewwebusage.py,sha256=ES2lI8NaCeCpTGi94HU-cDRBxHMiUBbplyYsZf2KqF0,16650
|
|
52
52
|
rda_python_metrics/viewwebusage.usg,sha256=OVDZ78p87E3HLW34ZhasNJ7Zmw8XXjmZPPWZfRhPLXo,9936
|
|
53
|
-
rda_python_metrics-1.0.
|
|
54
|
-
rda_python_metrics-1.0.
|
|
55
|
-
rda_python_metrics-1.0.
|
|
56
|
-
rda_python_metrics-1.0.
|
|
57
|
-
rda_python_metrics-1.0.
|
|
58
|
-
rda_python_metrics-1.0.
|
|
53
|
+
rda_python_metrics-1.0.40.dist-info/licenses/LICENSE,sha256=1dck4EAQwv8QweDWCXDx-4Or0S8YwiCstaso_H57Pno,1097
|
|
54
|
+
rda_python_metrics-1.0.40.dist-info/METADATA,sha256=Cp0ty6JjaTV6osYkeuO7L1j0X2zXZnphZxV3rETxD4o,761
|
|
55
|
+
rda_python_metrics-1.0.40.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
56
|
+
rda_python_metrics-1.0.40.dist-info/entry_points.txt,sha256=_Cw8KvtYwxLPt3kLJHwQ1r2swsKKbXk-2zYPZAg2czc,1345
|
|
57
|
+
rda_python_metrics-1.0.40.dist-info/top_level.txt,sha256=aoBgbR_o70TP0QmMW0U6inRHYtfKld47OBmnWnLnDOs,19
|
|
58
|
+
rda_python_metrics-1.0.40.dist-info/RECORD,,
|
|
File without changes
|
{rda_python_metrics-1.0.38.dist-info → rda_python_metrics-1.0.40.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{rda_python_metrics-1.0.38.dist-info → rda_python_metrics-1.0.40.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|