Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 1/2] compat: introduce stat_to_kilobytes

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:45:11

Junio C Hamano [off-list ref] writes:
Johannes Sixt [off-list ref] writes:
...
quoted
But notice that we now underestimated the size of loose objects more than
we did previously because we now round down individual sizes; previously
we rounded down only the total size.
Ah, you are right.

Perhaps we should fix this by making the helper stat_to_on_disk_bytes(),
so that on platform with st_blocks counted in 512-byte blocks we multiply
it by 512?
I've done this myself and will queue the result.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help