2023-01-07 15:45:31 +01:00
|
|
|
#!/usr/bin/python3
|
|
|
|
|
2023-02-26 15:12:06 +01:00
|
|
|
PREFIX = 'Channels per second: '
|
2023-01-07 15:45:31 +01:00
|
|
|
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])
|
2023-02-26 15:12:06 +01:00
|
|
|
#if 'UCsT0YIqwnpJCM-mx7-gSA4Q' in line:
|
|
|
|
# break
|
2023-01-07 15:45:31 +01:00
|
|
|
|
|
|
|
print(alreadyTreatedCommentsCount)
|