diff options
author | William Pitcock <nenolod@dereferenced.org> | 2018-12-01 22:17:28 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-12-04 04:52:09 +0000 |
commit | 1a360a4eaa57d57ccc4f03dfa25e82a240d0175a (patch) | |
tree | c5fe17489b02b589626765a5359db96abcf3fff1 /lib | |
parent | ef56488349a257def67d6c906a1f71e9bbed397e (diff) | |
download | pleroma-1a360a4eaa57d57ccc4f03dfa25e82a240d0175a.tar.gz |
compact database task: fix formatting
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mix/tasks/compact_database.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mix/tasks/compact_database.ex b/lib/mix/tasks/compact_database.ex index b84b340ac..7de50812a 100644 --- a/lib/mix/tasks/compact_database.ex +++ b/lib/mix/tasks/compact_database.ex @@ -39,9 +39,9 @@ defmodule Mix.Tasks.CompactDatabase do max = Repo.aggregate(Activity, :max, :id) Logger.info("Considering #{max} activities") - chunks = 0..(round(max / 100)) + chunks = 0..round(max / 100) - Enum.each(chunks, fn (i) -> + Enum.each(chunks, fn i -> min = i * 100 max = min + 100 |