mirror of
https://github.com/kopia/kopia.git
synced 2026-04-04 06:22:59 -04:00
* Update display on repository summary * Apply throughout app * Situate units_test * Update Command Line documentation * Envar cleanup * Rename to BytesString * Restore envar string available for test * Remove extraneous empty check and restore UIPreferences field for frontend * PR: config bool cleanup and missed `BaseEnv`s * Fix lint and test
This commit is contained in:
@@ -58,14 +58,14 @@ func (c *commandCacheSetParams) run(ctx context.Context, rep repo.RepositoryWrit
|
||||
|
||||
if v := c.contentCacheSizeMB; v != -1 {
|
||||
v *= 1e6 // convert MB to bytes
|
||||
log(ctx).Infof("changing content cache size to %v", units.BytesStringBase10(v))
|
||||
log(ctx).Infof("changing content cache size to %v", units.BytesString(v))
|
||||
opts.MaxCacheSizeBytes = v
|
||||
changed++
|
||||
}
|
||||
|
||||
if v := c.maxMetadataCacheSizeMB; v != -1 {
|
||||
v *= 1e6 // convert MB to bytes
|
||||
log(ctx).Infof("changing metadata cache size to %v", units.BytesStringBase10(v))
|
||||
log(ctx).Infof("changing metadata cache size to %v", units.BytesString(v))
|
||||
opts.MaxMetadataCacheSizeBytes = v
|
||||
changed++
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user