1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Refine SrsPithyPrint.age or SrsIngesterFFMPEG.alive in time unit.

This commit is contained in:
winlin 2019-04-18 08:15:55 +08:00
parent 522cbf1df8
commit 283c4c7449
4 changed files with 10 additions and 10 deletions

View file

@ -62,9 +62,9 @@ string SrsIngesterFFMPEG::uri()
return vhost + "/" + id;
}
int SrsIngesterFFMPEG::alive()
srs_utime_t SrsIngesterFFMPEG::alive()
{
return srsu2msi(srs_get_system_time() - starttime);
return srs_get_system_time() - starttime;
}
bool SrsIngesterFFMPEG::equals(string v)
@ -454,8 +454,8 @@ void SrsIngester::show_ingest_log_message()
// reportable
if (pprint->can_print()) {
srs_trace("-> " SRS_CONSTS_LOG_INGESTER " time=%" PRId64 ", ingesters=%d, #%d(alive=%ds, %s)",
pprint->age(), (int)ingesters.size(), index, ingester->alive() / 1000, ingester->uri().c_str());
srs_trace("-> " SRS_CONSTS_LOG_INGESTER " time=%dms, ingesters=%d, #%d(alive=%dms, %s)",
srsu2msi(pprint->age()), (int)ingesters.size(), index, srsu2msi(ingester->alive()), ingester->uri().c_str());
}
}