about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rwxr-xr-xbin/dtas-readahead3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/dtas-readahead b/bin/dtas-readahead
index 6da5f88..f2ab514 100755
--- a/bin/dtas-readahead
+++ b/bin/dtas-readahead
@@ -145,8 +145,9 @@ begin
   cur = DTAS.yaml_load(c.req('current'))
   while @todo_ra > 0 && fp.nil?
     if current = cur['current']
-      track = -current['infile']
+      track = current['infile']
       break unless track.kind_of?(String)
+      track = -track
       fp = work[track] ||= do_open(track)
       cur_pid = current['pid']
       if fp