@matheusbsbs / matheus-bagliano / commits / dd70f3dbe4
Fork 0

git-gui: Report less precise object estimates for database compression

On startup, git-gui warns if there are many loose objects. It does so by saying, e.g., that there are "approximately 768 loose objects". But isn't "768" a very accurate number? Lets say "750", which (while still being a very precise number) sounds much more like an estimation. Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Johannes Sixt committed Apr 14, 2008 at 10:51 UTC dd70f3dbe48b9e30589c5832e95229b474651d6a
1 file changed +2 -2
lib/database.tcl
+2 -2
@@ -102,8 +102,8 @@ proc hint_gc {} {
102 *]]
103
104 if {$objects_current >= $object_limit} {
105 - set objects_current [expr {$objects_current * 256}]
106 - set object_limit [expr {$object_limit * 256}]
105 + set objects_current [expr {$objects_current * 250}]
106 + set object_limit [expr {$object_limit * 250}]
107 if {[ask_popup \
108 [mc "This repository currently has approximately %i loose objects.
109