rtl_power: fix peak hold

pull/13/head
Kyle Keen 2014-11-30 23:06:31 -05:00
rodzic f1e8e4d38d
commit 3c01571043
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -971,7 +971,9 @@ void csv_dbm(struct tuning_state *ts)
}
dbm = (double)ts->avg[i];
dbm /= (double)ts->rate;
dbm /= (double)ts->samples;
if (!ts->peak_hold) {
dbm /= (double)ts->samples;
}
if (ts->linear) {
fprintf(file, "%.5g%s", dbm, sep);
} else {