From: Andre Noll Date: Thu, 1 Nov 2007 17:43:07 +0000 (+0100) Subject: Kill duplicate num_played status item. X-Git-Tag: v0.3.0~146 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=e4d409d8197a2dfda7466ef5ccde5cb1aa866e07;hp=5388ccac44e5342917ad50b091e9e4f906e3a4fc;ds=sidebyside 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. --- 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,