list backends with more keys first, not last
This commit is contained in:
parent
03e54680ff
commit
a7102ca4d5
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ bad_data_size = staleSize "bad keys size" gitAnnexBadDir
|
|||
backend_usage :: Stat
|
||||
backend_usage = stat "backend usage" $ usage <$> cachedKeysReferenced
|
||||
where
|
||||
usage ks = pp "" $ sort $ map swap $ splits $ S.toList ks
|
||||
usage ks = pp "" $ reverse . sort $ map swap $ splits $ S.toList ks
|
||||
splits :: [Key] -> [(String, Integer)]
|
||||
splits ks = M.toList $ M.fromListWith (+) $ map tcount ks
|
||||
tcount k = (keyBackendName k, 1)
|
||||
|
|
Loading…
Reference in a new issue