From 40c7225cb75c940d0e0774c51f1c5e2bec4e88e2 Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Thu, 12 Mar 2015 22:11:33 +0100 Subject: [PATCH] local: Fix remainder display in local scan --- mopidy/local/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mopidy/local/commands.py b/mopidy/local/commands.py index 798c10f8..279fda13 100644 --- a/mopidy/local/commands.py +++ b/mopidy/local/commands.py @@ -177,6 +177,6 @@ class _Progress(object): logger.info('Scanned %d of %d files in %ds.', self.count, self.total, duration) else: - remainder = duration // self.count * (self.total - self.count) + remainder = duration / self.count * (self.total - self.count) logger.info('Scanned %d of %d files in %ds, ~%ds left.', self.count, self.total, duration, remainder)