Fix a bug when normalizing total in progress()
This commit is contained in:
parent
acebf6efd6
commit
19750d1365
@ -139,7 +139,7 @@ class BrickSocket {
|
||||
let count = data["count"]
|
||||
|
||||
// Fix the total if bogus
|
||||
if (!total || isNaN(total) || total <= 1) {
|
||||
if (!total || isNaN(total) || total <= 0) {
|
||||
total = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user