瀏覽代碼

Don't crash if we were unable to preprocess _any_ DPFs of a given size

Just skip outputting that data point instead
Ian Goldberg 2 年之前
父節點
當前提交
cb6eafb340
共有 1 個文件被更改,包括 6 次插入4 次删除
  1. 6 4
      Docker/parse_logs

+ 6 - 4
Docker/parse_logs

@@ -401,10 +401,12 @@ sub sum_preproc_online {
                     $maxnum = $1 if $1 > $maxnum;
                     $maxnum = $1 if $1 > $maxnum;
                 }
                 }
             }
             }
-            $pkey = $key;
-            $pkey =~ s/\d+$/$maxnum/;
-            my $scale = int(($triednum+$maxnum-1)/$maxnum);
-            $tdict->{$key} = &statscalesum($odict->{$key}, $pdict->{$pkey}, $scale);
+            if ($maxnum > 0) {
+                $pkey = $key;
+                $pkey =~ s/\d+$/$maxnum/;
+                my $scale = int(($triednum+$maxnum-1)/$maxnum);
+                $tdict->{$key} = &statscalesum($odict->{$key}, $pdict->{$pkey}, $scale);
+            }
         }
         }
     }
     }
 }
 }