From 862eec34dbc945de5ac54b2ddef8d97182711978 Mon Sep 17 00:00:00 2001 From: Audrius Butkevicius Date: Tue, 20 Mar 2018 22:42:36 +0000 Subject: [PATCH] cmd/syncthing: Rename weak to rolling (#4830) --- cmd/syncthing/main.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index 2feed3d81..6c7a4cfc4 100644 --- a/cmd/syncthing/main.go +++ b/cmd/syncthing/main.go @@ -699,22 +699,22 @@ func syncthingMain(runtimeOptions RuntimeOptions) { if opts := cfg.Options(); opts.WeakHashSelectionMethod == config.WeakHashAuto { perfWithWeakHash := cpuBench(3, 150*time.Millisecond, true) - l.Infof("Hashing performance with weak hash is %.02f MB/s", perfWithWeakHash) + l.Infof("Hashing performance with rolling hash is %.02f MB/s", perfWithWeakHash) perfWithoutWeakHash := cpuBench(3, 150*time.Millisecond, false) - l.Infof("Hashing performance without weak hash is %.02f MB/s", perfWithoutWeakHash) + l.Infof("Hashing performance without rolling hash is %.02f MB/s", perfWithoutWeakHash) if perfWithoutWeakHash*0.8 > perfWithWeakHash { - l.Infof("Weak hash disabled, as it has an unacceptable performance impact.") + l.Infof("Rolling hash disabled, as it has an unacceptable performance impact.") weakhash.Enabled = false } else { - l.Infof("Weak hash enabled, as it has an acceptable performance impact.") + l.Infof("Rolling hash enabled, as it has an acceptable performance impact.") weakhash.Enabled = true } } else if opts.WeakHashSelectionMethod == config.WeakHashNever { - l.Infof("Disabling weak hash") + l.Infof("Disabling rolling hash") weakhash.Enabled = false } else if opts.WeakHashSelectionMethod == config.WeakHashAlways { - l.Infof("Enabling weak hash") + l.Infof("Enabling rolling hash") weakhash.Enabled = true }