diff options
Diffstat (limited to 'static/modules/stats.js')
| -rw-r--r-- | static/modules/stats.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/static/modules/stats.js b/static/modules/stats.js index 16dffd2..c76e889 100644 --- a/static/modules/stats.js +++ b/static/modules/stats.js @@ -1,3 +1,19 @@ +// deck-it - stats panel +// Copyright (C) 2026 Danilo M. <danix@danix.xyz> +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License version 2 as +// published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program; if not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + const gib = (kb) => (kb / 1048576).toFixed(1); const bytes = (b) => (b == null ? "?" : (b / 1073741824).toFixed(1)); const rate = (b) => (b >= 1048576 ? `${(b / 1048576).toFixed(1)}M` : `${Math.round(b / 1024)}k`); |
