From bd8b233316820cd35178085ef132f82279be0504 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 3 Oct 2023 14:24:51 +0200 Subject: logger --- src/show.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/show.ts') diff --git a/src/show.ts b/src/show.ts index b75ed7b..08a4778 100644 --- a/src/show.ts +++ b/src/show.ts @@ -1,3 +1,8 @@ +/* + This file is part of jshelper (https://codeberg.org/metamuffin/jshelper) + which is licensed under the GNU Affero General Public License (version 3); see /COPYING. + Copyright (C) 2023 metamuffin +*/ export function metric(x: number, unit = ""): string { if (x > 1000000000) return (x / 1000000000).toFixed(1) + "G" + unit -- cgit v1.2.3-70-g09d2