MCPcopy Create free account
hub / github.com/antirez/ds4 / parse_double_arg

Function parse_double_arg

ds4_bench.c:84–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 (unsigned long long)DS4_BENCH_DEFAULT_SNAPSHOT_MAX_BYTES);
83 return DS4_BENCH_DEFAULT_SNAPSHOT_MAX_BYTES;
84 }
85 return (uint64_t)v;
86}
87
88static double bytes_to_gib(uint64_t bytes) {
89 return (double)bytes / (1024.0 * 1024.0 * 1024.0);
90}
91
92static void usage(FILE *fp, const char *topic) {
93 ds4_help_print(fp, DS4_HELP_BENCH, topic);
94}
95

Callers 1

parse_optionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected