Skip to content
Browse files

fix div by zero error

  • Loading branch information...
1 parent 557c035 commit d7cefb9807e902846a3fb69510695e58f579ad96 Robert Newson committed Sep 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/couch_replicator.erl
View
2 src/couch_replicator.erl
@@ -939,7 +939,7 @@ update_task(State) ->
rep_stats(State) ++ [
{source_seq, SourceCurSeq},
case {unpack_seq(CurSeq), unpack_seq(SourceCurSeq)} of
- {0, _} ->
+ {_, 0} ->
{progress, 0};
{CurSeq1, SourceCurSeq1} ->
{progress, (CurSeq1 * 100) div SourceCurSeq1}

0 comments on commit d7cefb9

Please sign in to comment.
Something went wrong with that request. Please try again.