Comments (1)
It becomes clearer when we see a bit more context:
So we have a lot of small files that all consume one cluster (4k), so the other rule comes into play:
https://github.com/shundhammer/qdirstat/blob/master/src/FileInfoSorter.cpp#L40-L47
if ( a->totalAllocatedSize() == b->totalAllocatedSize() )
{
// This is a common case because of cluster-wise allocation
return a->totalSize() < b->totalSize();
}
else
return a->totalAllocatedSize() < b->totalAllocatedSize();
All those tiny files are sorted by their totalSize()
, the byte size because their totalAllocatedSize()
is the same every time: 4k, so you see them sorted by the few bytes of their nominal size.
But when compared with the files with multiple hard links, their totalSize()
is no longer the same: Because the files with only one hard link still have one cluster (4k), while those with multiple hard links share that one cluster between all their hard links, so it's actually less than that one cluster; in this example one cluster divided by their two links, i.e. 4k / 2 = 2k.
That might be a bit irritating because it looks like there is a jump in the sorting, but it's really consistent.
from qdirstat.
Related Issues (20)
- File type statistics don't add up = literally HOT 10
- Qt6 support? HOT 7
- File type statistics for packages sometimes allowed, sometimes not HOT 9
- Find files subtree not updated when the DirTree is reloaded HOT 2
- Unexpected results when refreshing the locate files window HOT 2
- Accelerator clashes HOT 6
- Fonts can't always be resized in the output window HOT 1
- Crash during recursive cleanup with refresh policy "assume deleted" HOT 10
- Cross filesystems setting not respected HOT 2
- Crash when unable to open a cache file HOT 5
- 100% CPU after reading is aborted HOT 1
- Package member file sometimes not showing package data in file details view HOT 2
- Erratic crash apparently related to the Unpkg dialog HOT 12
- Question for use in Linux with files with multiple hard links HOT 2
- qdirstat-cache-writer does not operate correctly with relative paths HOT 2
- Crash when selecting ignored root in Unpackaged view
- Ignored directory has children that are not ignored HOT 1
- Crash when selecting the dot entry of an aborted package read HOT 1
- Option to store uid, gid and perms in cache file HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qdirstat.