diff options
author | Thomas White <taw@physics.org> | 2014-04-03 15:38:56 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-04-03 15:38:56 +0200 |
commit | 81145ca15e5e2002283ccb9652b555d23be46451 (patch) | |
tree | 8744383db8c13e7c64f2425da62aaeb5be15ee58 | |
parent | b6faf60f7390fcfd9cef5dc30de59d76cf490814 (diff) |
scripts/truncate-stream: Fix duplicated chunk end marker
-rwxr-xr-x | scripts/truncate-stream | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/truncate-stream b/scripts/truncate-stream index 0ee4ce34..1725082a 100755 --- a/scripts/truncate-stream +++ b/scripts/truncate-stream @@ -43,6 +43,7 @@ def count_crystals(f, g, start_after, stop_after): in_chunk = 0 if need_end_chunk: g.write(fline) + need_end_chunk = 0 if (stop_after != 0) and (n_crystals_written == stop_after): break |