MCPcopy Create free account
hub / github.com/ElementsProject/lightning / ppm_to_str

Function ppm_to_str

common/splice_script.c:2744–2753  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2742}
2743
2744static char *ppm_to_str(const tal_t *ctx, u32 ppm)
2745{
2746 if (ppm == UINT_MAX)
2747 return tal_fmt(ctx, "max");
2748
2749 if (ppm % 10000)
2750 return tal_fmt(ctx, "%u.%04u%%", ppm / 10000, ppm % 10000);
2751
2752 return tal_fmt(ctx, "%u%%", ppm / 10000);
2753}
2754
2755char *splice_to_string(const tal_t *ctx,
2756 struct splice_script_result *result)

Callers 1

splice_to_stringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected