- if (stot <1.0) { /* nothing there */
- *current=0;
- *total=0;
- /* logf(LOG_LOG, "r_pos: NULL %0.1f %0.1f", *current, *total);*/
- return;
+ if (stot < 1.0) { /* nothing there */
+ *current = 0;
+ *total = 0;
+ yaz_log(log_level, "r_pos: NULL %0.1f %0.1f", *current, *total);
+ }
+ else
+ {
+ *current = (double) (mrfd->hits);
+ *total = *current*stot/scur;
+ yaz_log(log_level, "r_pos: = %0.1f %0.1f", *current, *total);