From 1e73177c79e8ffb6ccf94b755efa3ee3c667bc25 Mon Sep 17 00:00:00 2001 From: Tim <roadscape@users.noreply.github.com> Date: Fri, 23 Jun 2017 12:08:28 -0400 Subject: [PATCH] fix dump.rb bug --- checkpoints/dump.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/checkpoints/dump.rb b/checkpoints/dump.rb index f284e0b66..e0bab29fa 100755 --- a/checkpoints/dump.rb +++ b/checkpoints/dump.rb @@ -59,12 +59,12 @@ end def stream_blocks_to_file n1, n2, file raise "File already exists" if File.exists?(file) File.open(file, 'w') do |f| - stream_blocks_from_ws(n1, n2){|r| f.write(r[1]+"\n")} + stream_blocks_from_ws(n1, n2){|r| f.write(r+"\n")} end end # Save all blocks up to 12M in batches of 1M -(1..12).each do |mil| +(1..13).each do |mil| n1 = (mil - 1) * 1000000 + 1 n2 = mil * 1000000 stream_blocks_to_file n1, n2, "#{n2}.json.lst" -- GitLab