mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
WebUI: disallow number literals with zero fractions or dangling dots
Javascript treats them all the same as `Number`.
This commit is contained in:
@@ -131,7 +131,7 @@ window.qBittorrent.FileTree ??= (() => {
|
||||
}
|
||||
|
||||
calculateRemaining() {
|
||||
this.remaining = this.isIgnored() ? 0 : (this.size * (1.0 - (this.progress / 100)));
|
||||
this.remaining = this.isIgnored() ? 0 : (this.size * (1 - (this.progress / 100)));
|
||||
}
|
||||
|
||||
serialize() {
|
||||
|
||||
Reference in New Issue
Block a user