# HG changeset patch # User melunko # Date 1170196079 0 # Node ID 43dc23e931b623da31160b3a8212cc3c8f1ded90 # Parent 03b31601f9ca7067989be05ac1331fb56cdec7c3 [svn r317] Fixed program info to string conversion bug diff -r 03b31601f9ca -r 43dc23e931b6 gmyth/src/gmyth_programinfo.c --- a/gmyth/src/gmyth_programinfo.c Tue Jan 30 22:04:04 2007 +0000 +++ b/gmyth/src/gmyth_programinfo.c Tue Jan 30 22:27:59 2007 +0000 @@ -309,11 +309,21 @@ gmyth_string_list_append_string (slist, prog->chansign); /* 6 */ gmyth_string_list_append_string (slist, prog->channame); /* 7 */ gmyth_string_list_append_string (slist, prog->pathname); /* 8 */ - gmyth_string_list_append_int64 (slist, prog->filesize); /* 9 */ - gmyth_string_list_get_int64 (slist, 10); /* 11 */ - gmyth_string_list_append_int (slist, prog->startts->tv_sec); /* 11 */ //DATETIME_TO_LIST(startts) - gmyth_string_list_append_int (slist, prog->endts->tv_sec); /* 12 */ //DATETIME_TO_LIST(endts) + // fixme + gmyth_string_list_append_int64 (slist, 100/*prog->filesize*/); /* 9 */ + gmyth_string_list_append_int64 (slist, 10); /* 11 */ + + if (prog->startts) + gmyth_string_list_append_int (slist, prog->startts->tv_sec); /* 11 */ //DATETIME_TO_LIST(startts) + else + gmyth_string_list_append_int (slist, 0); + + if (prog->endts) + gmyth_string_list_append_int (slist, prog->endts->tv_sec); /* 12 */ //DATETIME_TO_LIST(endts) + else + gmyth_string_list_append_int (slist, 0); + gmyth_string_list_append_int (slist, prog->duplicate); /* 13 */ gmyth_string_list_append_int (slist, prog->shareable); /* 14 */ gmyth_string_list_append_int (slist, prog->findid); /* 15 */