Skip to content

Commit

Permalink
git-gui: Report less precise object estimates for database compression
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Sixt authored and Shawn O. Pearce committed Apr 14, 2008
1 parent 729ffa5 commit dd70f3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/database.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit dd70f3d

Please sign in to comment.