From 24520c9b4b98f9c8668a2fad729297e7c13a44cb Mon Sep 17 00:00:00 2001 From: kurt Date: Tue, 15 Oct 2024 18:15:29 +0800 Subject: [PATCH] fixed REXState#net_price_per_kb method calling itself --- src/rex.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rex.ts b/src/rex.ts index 6ae47ca..3ceb04e 100644 --- a/src/rex.ts +++ b/src/rex.ts @@ -48,7 +48,7 @@ export class REXState extends Struct { } net_price_per_kb(sample: SampleUsage, kilobytes = 1): number { - return this.net_price_per_kb(sample, kilobytes * 1000) + return this.net_price_per_byte(sample, kilobytes * 1000) } net_price_per_byte(sample: SampleUsage, bytes = 1000): number {