X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=audiod_command.c;h=dfb014aebc1c1d12659364189ac79813c952139c;hp=0f7aa7e625ffcd0c7274f16e184f308b0322ceab;hb=5b1a844f375cc5e0303d9118ae0fc4a311c616d3;hpb=85c2ed9bb21a7576e10c63c0273ff1ecc5e45b9b diff --git a/audiod_command.c b/audiod_command.c index 0f7aa7e6..dfb014ae 100644 --- a/audiod_command.c +++ b/audiod_command.c @@ -194,7 +194,7 @@ static int get_play_time_slot_num(void) 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) @@ -480,7 +480,7 @@ void audiod_status_dump(void) 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);