Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

total repo size != sum of folders #59

Open
andybeet opened this issue Sep 15, 2020 · 6 comments
Open

total repo size != sum of folders #59

andybeet opened this issue Sep 15, 2020 · 6 comments

Comments

@andybeet
Copy link

andybeet commented Sep 15, 2020

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

@sanjarcode
Copy link

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

@msvamp
Copy link

msvamp commented Nov 12, 2020

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?

@Kwadz
Copy link

Kwadz commented Nov 24, 2020

Same here, please reopen #9.

image

@Prakash4844
Copy link

Same Issue Here,
image

The Cloned Size Differs from the Shown Repository Size.
image

@AkechiShiro
Copy link

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 : #9 (comment)

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

@AminoffZ
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants