FOR_EACH_SLOT(i) {
struct slot_info *s = &slot[i];
struct timeval wstime;
- if (!s->wns)
+ if (!s->wns || !s->wns[0].btrn)
continue;
btr_get_node_start(s->wns[0].btrn, &wstime);
if (oldest_slot >= 0 && tv_diff(&wstime, &oldest_wstime, NULL) > 0)
free(new);
}
- new = uptime_str();
+ new = get_server_uptime_str(now);
old = stat_item_values[SI_AUDIOD_UPTIME];
if (!old || strcmp(old, new)) {
free(old);