]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Kill duplicate num_played status item.
authorAndre Noll <maan@systemlinux.org>
Thu, 1 Nov 2007 17:43:07 +0000 (18:43 +0100)
committerAndre Noll <maan@systemlinux.org>
Thu, 1 Nov 2007 17:43:07 +0000 (18:43 +0100)
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

index a029cfadfb2ccf15aeb9610ed971f223da71fcca..e11d07312aeb15fa14cb6b3d19b7c61425ac4915 100644 (file)
--- 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(
        }
        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"
                "%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_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,
 
                status_item_list[SI_BASENAME], basename ? basename : "(none)",
                status_item_list[SI_STATUS], status,