X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=lib%2Fdatabase.tcl;h=a18ac8b4308d8263a0688058524282b72bafe77a;hb=7cce5b2cbc12a73eca3f62a885e9dbad17b250a5;hp=118b1b29ab76671812a1e367218c2ba6247df74c;hpb=c8dd7f62e8b335681099cdcec2b01aeaad646813;p=git.git diff --git a/lib/database.tcl b/lib/database.tcl index 118b1b29a..a18ac8b43 100644 --- a/lib/database.tcl +++ b/lib/database.tcl @@ -102,14 +102,14 @@ 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 \ - "This repository currently has approximately $objects_current loose objects. + [mc "This repository currently has approximately %i loose objects. -To maintain optimal performance it is strongly recommended that you compress the database when more than $object_limit loose objects exist. +To maintain optimal performance it is strongly recommended that you compress the database when more than %i loose objects exist. -Compress the database now?"] eq yes} { +Compress the database now?" $objects_current $object_limit]] eq yes} { do_gc } }