summaryrefslogtreecommitdiff
path: root/contrib/analyze_brprob
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/analyze_brprob')
-rwxr-xr-xcontrib/analyze_brprob6
1 files changed, 2 insertions, 4 deletions
diff --git a/contrib/analyze_brprob b/contrib/analyze_brprob
index 3c7e8e5712d..5166e8492b7 100755
--- a/contrib/analyze_brprob
+++ b/contrib/analyze_brprob
@@ -112,13 +112,11 @@ BEGIN {nnames = 0}
if (int(pred) < 50.0)
{
- hit = count - hit;
+ hit = count"-"hit;
}
counts[name]=counts[name] "+" count
hits[name]=hits[name] "+" hit
- if (float (hit) < (float (count) / 2))
- hit = "("count" - "hit")";
- phits[name]=phits[name] "+" hit
+ phits[name]=phits[name] "+(("hit")<"count"/2)*("count"-("hit"))+(("hit")>="count"/2)*("hit")"
#BC crashes on long strings. Irritating.
if (length(counts[name]) > 2000)