Commit e1232610 authored by Lukáš Tinkl's avatar Lukáš Tinkl
Browse files

fix showing remaining free space (in both the progress bar and the

tooltip)
parent 60055539
......@@ -245,8 +245,8 @@ Item {
state: model["State"]
percentUsage: {
var freeSpace = Number(model["Free Space"]);
var size = Number(model["Size"]);
var freeSpace = new Number(model["Free Space"]);
var size = new Number(model["Size"]);
var used = size-freeSpace;
return used*100/size;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment