]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Storage.pm
Avoid JavaScript gets a string 0.
[pve-storage.git] / PVE / Storage.pm
index f80976248ab9c31576d8ad68ed9927b796097ce0..ff43b17622eeff789746934ba510434c0b291ee5 100755 (executable)
@@ -1059,9 +1059,9 @@ sub storage_info {
        eval { ($total, $avail, $used, $active) = $plugin->status($storeid, $scfg, $cache); };
        warn $@ if $@;
        next if !$active;
-       $info->{$storeid}->{total} = $total;
-       $info->{$storeid}->{avail} = $avail;
-       $info->{$storeid}->{used} = $used;
+       $info->{$storeid}->{total} = int ($total);
+       $info->{$storeid}->{avail} = int ($avail);
+       $info->{$storeid}->{used} = int ($used);
        $info->{$storeid}->{active} = $active;
     }