ref: b7e2b108be8f5ae6af487184ad2f202588b8df9e
parent: 1ecccdb9ae2721fd209b9af872987a3efa7278a7
author: robs <robs>
date: Sun May 6 13:36:15 EDT 2007
Fix for NaNs (from Tommi Höynälänmaa)
--- a/src/noiseprof.c
+++ b/src/noiseprof.c
@@ -193,7 +193,7 @@
fprintf(data->output_file, "Channel %d: ", i);
for (j = 0; j < FREQCOUNT; j ++) {
- double r = chan->profilecount[j] != 0 ?
+ double r = chan->profilecount[j] != 0 ?
chan->sum[j] / chan->profilecount[j] : 0;
fprintf(data->output_file, "%s%f", j == 0 ? "" : ", ", r);
}