Average commits per day seems to be much lower than its actual value #743
-
I have around 1500 commits pushed in the last 365 days, most of which are concentrated in the last couple of months. However, the average commits per day is 1.44 when it should be at least 4. Why is this the case? Here's my GitHub profile: https://github.com/developomp |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
whats your configured amount of days to use when calculating the average commits per day? |
Beta Was this translation helpful? Give feedback.
-
Hi 👋 ! Normally the commits count should be your total amount of commits, but it can be limited due to GitHub search api (so it'll fallback to the last year). Because of this, it results in a lower average like you reported. metrics/source/plugins/base/index.mjs Lines 118 to 125 in fca0c3f I think the best way to handle this would be to catch whether we have fallbacked or now, and separate into 2 stats (All time, and Windowed to isocalendar duration) This will be tracked by #753 |
Beta Was this translation helpful? Give feedback.
Hi 👋 !
I think it's because the commits gets divided by your account age:
1500/(3*365) ≈ 1.37 ≈ 1.44
Normally the commits count should be your total amount of commits, but it can be limited due to GitHub search api (so it'll fallback to the last year). Because of this, it results in a lower average like you reported.
metrics/source/plugins/base/index.mjs
Lines 118 to 125 in fca0c3f