sr_period_string takes the frequency as its argument, i.e. the reciprocal
of the timebase. Obviously this will not work for frequencies less than
1Hz / timebases greater than 1 second, but at least is correct for all
other available timebases.
state->pod_states[i] ? "On" : "Off");
}
- tmp = sr_period_string(dlm_timebases[state->timebase][0] *
- dlm_timebases[state->timebase][1]);
+ tmp = sr_period_string(dlm_timebases[state->timebase][1] /
+ dlm_timebases[state->timebase][0]);
sr_info("Current timebase: %s", tmp);
g_free(tmp);