MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / fmt_bytecount

Function fmt_bytecount

ffserver.c:1862–1870  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1860}
1861
1862static void fmt_bytecount(ByteIOContext *pb, int64_t count)
1863{
1864 static const char *suffix = " kMGTP";
1865 const char *s;
1866
1867 for (s = suffix; count >= 100000 && s[1]; count /= 1000, s++);
1868
1869 url_fprintf(pb, "%"PRId64"%c", count, *s);
1870}
1871
1872static void compute_status(HTTPContext *c)
1873{

Callers 1

compute_statusFunction · 0.85

Calls 1

url_fprintfFunction · 0.85

Tested by

no test coverage detected