Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keeping track of processed files #1691

Merged
merged 2 commits into from
Jan 5, 2024
Merged

keeping track of processed files #1691

merged 2 commits into from
Jan 5, 2024

Conversation

amitu
Copy link
Contributor

@amitu amitu commented Jan 5, 2024

d = {}
c = 0

for line in open("t.log"):
    if "Processing" not in line:
        continue
    c += 1

    p = line.split()[2]
    d[p] = d.get(p, 0) + 1
    if d[p] > 1:
        print(p, d[p])

print(c, len(d))

Last few lines when analysing log of fastn.com:

fastn-community.github.io/spectrum-ds/static/icon-github.svg 10
fastn-community.github.io/spectrum-ds/static/icon-github-dark.svg 10
fastn-community.github.io/spectrum-ds/static/lock-icon.svg 10
fastn-community.github.io/spectrum-ds/static/lock-icon-dark.svg 10
fastn-community.github.io/spectrum-ds/static/filter.css 10
fastn-community.github.io/header/static/header/hamburger-dark.svg 18
1055 133

@amitu amitu changed the title keeping track of list of processed files keeping track of processed files Jan 5, 2024
@amitu amitu merged commit 78ab43e into main Jan 5, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant