sixths: fix hPa formatting.

pull/3550/head
Pavel Machek 2024-08-18 21:55:54 +02:00
parent bc0a490bea
commit 7057b34e6f
1 changed files with 2 additions and 2 deletions

View File

@ -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) {