aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-04-03 15:38:56 +0200
committerThomas White <taw@physics.org>2014-04-03 15:38:56 +0200
commit81145ca15e5e2002283ccb9652b555d23be46451 (patch)
tree8744383db8c13e7c64f2425da62aaeb5be15ee58
parentb6faf60f7390fcfd9cef5dc30de59d76cf490814 (diff)
scripts/truncate-stream: Fix duplicated chunk end marker
-rwxr-xr-xscripts/truncate-stream1
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