Skip to content

Instantly share code, notes, and snippets.

@arekinath
Last active December 15, 2015 20:09
Show Gist options
  • Save arekinath/5316844 to your computer and use it in GitHub Desktop.
Save arekinath/5316844 to your computer and use it in GitHub Desktop.
make fifoadm datasets import work
diff --git a/apps/sniffle/src/sniffle_console_datasets.erl b/apps/sniffle/src/sn
index e8a904b..e7880ca 100644
--- a/apps/sniffle/src/sniffle_console_datasets.erl
+++ b/apps/sniffle/src/sniffle_console_datasets.erl
@@ -27,9 +27,9 @@ read_image(UUID, File, TotalSize, LastDone, Idx) ->
case trunc((Done - LastDone) / 0.02) of
X when X >= 1 ->
io:format(string:copies("=", X)),
- read_image(UUID, File, TotalSize, Done, Idx);
+ read_image(UUID, File, TotalSize, Done, Idx1);
_ ->
- read_image(UUID, File, TotalSize, LastDone, Idx)
+ read_image(UUID, File, TotalSize, LastDone, Idx1)
end
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment