From e4d409d8197a2dfda7466ef5ccde5cb1aa866e07 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 1 Nov 2007 18:43:07 +0100 Subject: [PATCH] Kill duplicate num_played status item. In fact, the two num_played values were different: The first was the number of audio files streamed by para_server so far, and the second one was the num_played value from struct afs_info. The former is also contained in the output of com_si, so get rid of it in the stat output. --- command.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/command.c b/command.c index a029cfad..e11d0731 100644 --- a/command.c +++ b/command.c @@ -115,7 +115,7 @@ static char *get_status(struct misc_meta_data *nmmd) } gettimeofday(&now, NULL); ret = make_message( - "%s:%zu\n" "%s:%s\n" "%s:%lu\n" "%s:%u\n" + "%s:%zu\n" "%s:%s\n" "%s:%lu\n" "%s:%s\n" "%s:%s\n" "%s:%s\n" "%s:%li\n" "%s:%s\n" "%s" "%s:%s\n" "%s:%lu.%lu\n" "%s:%lu.%lu\n" @@ -123,7 +123,6 @@ static char *get_status(struct misc_meta_data *nmmd) status_item_list[SI_FILE_SIZE], nmmd->size / 1024, status_item_list[SI_MTIME], mtime, status_item_list[SI_LENGTH], nmmd->afd.afhi.seconds_total, - status_item_list[SI_NUM_PLAYED], nmmd->num_played, status_item_list[SI_BASENAME], basename ? basename : "(none)", status_item_list[SI_STATUS], status, -- 2.30.2