From 3035f8de11d0eb9a78494d73c012be155392e16b Mon Sep 17 00:00:00 2001 From: Tony Kovanen Date: Wed, 2 Mar 2016 13:48:43 +0200 Subject: [PATCH] Fix condition --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 3e87b77..308ef28 100644 --- a/lib/index.js +++ b/lib/index.js @@ -120,7 +120,7 @@ export default class Now extends EventEmitter { } get syncAmount () { - if (this._syncAmount) { + if (!this._syncAmount) { this._syncAmount = this._missing .map((sha) => Buffer.byteLength(this._files.get(sha).data)) .reduce((a, b) => a + b, 0);