Make all Python scripts executable and add findAlreadyTreatedCommentsCount.py to find how many comments were already treated

This commit is contained in:
Benjamin_Loison committed 2023-01-07 15:45:31 +01:00
1 parent 3758405f52
commit 3ae0f4e924
6 files changed
+12

No files matched your search

+12
View File
@@ -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)
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
Regular → Executable
View File
File mode changed.
View File
File mode changed.