github-repo-size icon indicating copy to clipboard operation
github-repo-size copied to clipboard

total repo size != sum of folders

Open andybeet opened this issue 5 years ago • 6 comments

I have a private repo in which the after activating the plugin says it is 714MB However when i click this to display the folder sizes, there is one folder @1.58GB

It seems like the plugin is not calculating things correctly. Any ideas? image

EDIT: I see this behavior in many other repos, some repos have an underestimate of total size, others an overestimate

andybeet avatar Sep 15 '20 20:09 andybeet

Same issue, look at this repo. image image Does not match. In my case, the extension is overestimating, unlike in @andybeet where its underestimating.

sanjarcode avatar Nov 09 '20 06:11 sanjarcode

I can confirm the size-mismatch issue with this repository: https://github.com/Windos/BurntToast

GitHub page screenshot

This issue seems a duplicate of #9

Now, looking for a workaround.

@harshjv @Geolim4 Maybe #9 should be reopened?

msvamp avatar Nov 12 '20 17:11 msvamp

Same here, please reopen #9.

image

Kwadz avatar Nov 24 '20 10:11 Kwadz

Same Issue Here, image

The Cloned Size Differs from the Shown Repository Size. image

Prakash4844 avatar Jun 30 '22 04:06 Prakash4844

So I take it this issue won't get addressed as the solution clearly isn't simple, if you check #9 there is a GitHub Support answer : https://github.com/harshjv/github-repo-size/issues/9#issuecomment-239745588

Hi Harsh,

The size attribute represents disk usage in KB, and is what is listed when viewing the sizes of your personal repositories:

https://github.com/settings/repositories

However, due to the way we store repositories, the size may be way off for large repositories and repositories with a lot of forks (i.e. large networks). Also, the size might not be refreshed immediately. We might be removing this attributes soon from API responses since there is no simple fix and it creates more confusion than value. I recommend that you don't rely on this value and that you compute the size of the repository yourself.

I hope this answers your question.

Best, Ivan

AkechiShiro avatar Aug 04 '23 09:08 AkechiShiro

I have addressed this on my project. I'm currently actively maintaining and looking for contributors.

AminoffZ avatar Sep 27 '23 13:09 AminoffZ