Home
last modified time | relevance | path

Searched refs:utos_funit (Results 1 – 3 of 3) sorted by relevance

/third_party/nghttp2/src/
Dutil_test.cc287 CU_ASSERT("0" == util::utos_funit(0)); in test_util_utos_funit()
288 CU_ASSERT("1023" == util::utos_funit(1023)); in test_util_utos_funit()
289 CU_ASSERT("1.00K" == util::utos_funit(1024)); in test_util_utos_funit()
290 CU_ASSERT("1.00K" == util::utos_funit(1025)); in test_util_utos_funit()
291 CU_ASSERT("1.09K" == util::utos_funit(1119)); in test_util_utos_funit()
292 CU_ASSERT("1.27K" == util::utos_funit(1300)); in test_util_utos_funit()
293 CU_ASSERT("1.00M" == util::utos_funit(1 << 20)); in test_util_utos_funit()
294 CU_ASSERT("1.18M" == util::utos_funit(1234567)); in test_util_utos_funit()
295 CU_ASSERT("1.00G" == util::utos_funit(1 << 30)); in test_util_utos_funit()
296 CU_ASSERT("4492450797.23G" == util::utos_funit(4823732313248234343LL)); in test_util_utos_funit()
[all …]
Dh2load.cc3268 << util::utos_funit(bps) << R"(B/s in main()
3277 traffic: )" << util::utos_funit(stats.bytes_total) in main()
3279 << util::utos_funit(stats.bytes_head) << "B (" << stats.bytes_head in main()
3281 << "%), " << util::utos_funit(stats.bytes_body) << "B (" in main()
Dutil.h486 template <typename T> std::string utos_funit(T n) { in utos_funit() function