Make all Python scripts executable and add findAlreadyTreatedCommentsCount.py to find how many comments were already treated
This commit is contained in:
6 files changed
+12
No files matched your search
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
PREFIX = 'Comments per second: '
|
||||
alreadyTreatedCommentsCount = 0
|
||||
|
||||
with open('nohup.out') as f:
|
||||
lines = f.read().splitlines()
|
||||
for line in lines:
|
||||
if PREFIX in line:
|
||||
alreadyTreatedCommentsCount += int(line.split(PREFIX)[-1])
|
||||
|
||||
print(alreadyTreatedCommentsCount)
|
||||
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Reference in new issue
Block a user