MCPcopy Create free account
hub / github.com/apache/trafficserver / format_center

Function format_center

src/traffic_logstats/logstats.cc:1902–1906  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////////// Produce a nicely formatted output for a stats collection on a stream

Source from the content-addressed store, hash-verified

1900///////////////////////////////////////////////////////////////////////////////
1901// Produce a nicely formatted output for a stats collection on a stream
1902inline void
1903format_center(const char *str)
1904{
1905 std::cout << std::setfill(' ') << std::setw((cl.line_len - strlen(str)) / 2 + strlen(str)) << str << std::endl << std::endl;
1906}
1907
1908inline void
1909format_int(int64_t num)

Callers 1

my_exitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected