From 7057b34e6fd4e01fd3ee0ac039488dc952cf2a32 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Sun, 18 Aug 2024 21:55:54 +0200 Subject: [PATCH] sixths: fix hPa formatting. --- apps/sixths/sixths.app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/sixths/sixths.app.js b/apps/sixths/sixths.app.js index b491faa8d..90bf17ded 100644 --- a/apps/sixths/sixths.app.js +++ b/apps/sixths/sixths.app.js @@ -31,10 +31,10 @@ let fmt = { return p.toFixed(0) + this.icon_hpa; if (p < 1000) { p -= 900; - return this.icon_9 + p.toFixed(0) + this.icon_hpa; + return this.icon_9 + this.add0(p.toFixed(0)) + this.icon_hpa; } p -= 1000; - return this.icon_10 + p.toFixed(0) + this.icon_hpa; + return this.icon_10 + this.add0(p.toFixed(0)) + this.icon_hpa; }, draw_dot : 1, add0: function(i) {