[svn r317] Fixed program info to string conversion bug trunk
authormelunko
Tue Jan 30 22:27:59 2007 +0000 (2007-01-30)
branchtrunk
changeset 31643dc23e931b6
parent 315 03b31601f9ca
child 317 3b575d136efe
[svn r317] Fixed program info to string conversion bug
gmyth/src/gmyth_programinfo.c
     1.1 --- a/gmyth/src/gmyth_programinfo.c	Tue Jan 30 22:04:04 2007 +0000
     1.2 +++ b/gmyth/src/gmyth_programinfo.c	Tue Jan 30 22:27:59 2007 +0000
     1.3 @@ -309,11 +309,21 @@
     1.4      gmyth_string_list_append_string (slist, prog->chansign); /* 6 */
     1.5      gmyth_string_list_append_string (slist, prog->channame); /* 7 */
     1.6      gmyth_string_list_append_string (slist, prog->pathname); /* 8 */
     1.7 -    gmyth_string_list_append_int64 (slist, prog->filesize); /* 9 */
     1.8 -    gmyth_string_list_get_int64 (slist, 10); /* 11 */
     1.9  
    1.10 -    gmyth_string_list_append_int (slist, prog->startts->tv_sec);  /* 11 */ //DATETIME_TO_LIST(startts)
    1.11 -    gmyth_string_list_append_int (slist, prog->endts->tv_sec);  /* 12 */ //DATETIME_TO_LIST(endts)
    1.12 +    // fixme
    1.13 +    gmyth_string_list_append_int64 (slist, 100/*prog->filesize*/); /* 9 */
    1.14 +    gmyth_string_list_append_int64 (slist, 10); /* 11 */
    1.15 +
    1.16 +    if (prog->startts)
    1.17 +        gmyth_string_list_append_int (slist, prog->startts->tv_sec);  /* 11 */ //DATETIME_TO_LIST(startts)
    1.18 +    else
    1.19 +	gmyth_string_list_append_int (slist, 0);
    1.20 +    
    1.21 +    if (prog->endts)
    1.22 +        gmyth_string_list_append_int (slist, prog->endts->tv_sec);  /* 12 */ //DATETIME_TO_LIST(endts)
    1.23 +    else
    1.24 +	gmyth_string_list_append_int (slist, 0);
    1.25 +
    1.26      gmyth_string_list_append_int (slist, prog->duplicate); /* 13 */
    1.27      gmyth_string_list_append_int (slist, prog->shareable); /* 14 */
    1.28      gmyth_string_list_append_int (slist, prog->findid); /* 15 */