From: Johannes Sixt Date: Mon, 14 Apr 2008 08:51:33 +0000 (+0200) Subject: git-gui: Report less precise object estimates for database compression X-Git-Tag: gitgui-0.10.2~7 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=dd70f3dbe48b9e30589c5832e95229b474651d6a;p=git.git 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 Signed-off-by: Shawn O. Pearce --- diff --git a/lib/database.tcl b/lib/database.tcl index d66aa3fe3..a18ac8b43 100644 --- a/lib/database.tcl +++ b/lib/database.tcl @@ -102,8 +102,8 @@ proc hint_gc {} { *]] if {$objects_current >= $object_limit} { - set objects_current [expr {$objects_current * 256}] - set object_limit [expr {$object_limit * 256}] + set objects_current [expr {$objects_current * 250}] + set object_limit [expr {$object_limit * 250}] if {[ask_popup \ [mc "This repository currently has approximately %i loose objects.