1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-15 04:42:04 +00:00

refine the code, add comments to result to self interpret

This commit is contained in:
winlin 2014-06-10 11:44:02 +08:00
parent 8817823462
commit 4d9ed6f7fe

View file

@ -154,7 +154,8 @@ rtmp_destroy:
"\"%s\":%d, " // #5
"\"%s\":%d, " // #6
"\"%s\":%d, " // #7
"%s}",
"\"%s\":%d, " // #8
"%s%s%s}",
// total = dns + tcp_connect + start_play + first_packet + last_packet
"total", (int)(time_cleanup - time_startup), //#1
"dns", (int)(time_dns_resolve - time_startup), //#2
@ -162,12 +163,15 @@ rtmp_destroy:
"start_play", (int)(time_play_stream - time_socket_connect), //#4
"first_packet", (int)(time_first_packet - time_play_stream), //#5
"last_packet", (int)(time_cleanup - time_first_packet), //#6
"stream", (int)(timestamp), //#7
// expect = time_cleanup - time_first_packet
// actual = timestamp
// actual = stream
// delay = actual - expect
"delay", (int)(timestamp - (time_cleanup - time_first_packet)), //#7
"delay", (int)(timestamp - (time_cleanup - time_first_packet)), //#8
// unit in ms.
"\"unit\": \"ms\""
"\"unit\": \"ms\",",
"\"remark0\": \"total = dns + tcp_connect + start_play + first_packet + last_packet\",",
"\"remark1\": \"delay = stream - (time_cleanup - time_first_packet)\""
);
printf("\n");