Re: [libvirt] freecell gives out bytes instead of kilobytes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Florian Vichot schrieb:
Gerrit Slomma a écrit :
    if (cell == -1)
-        vshPrint(ctl, "%s: %llu kB\n", _("Total"), memory);
+       if (memory < 10*1024*1204*1024)

If I may, it should probably read "1024", not "1204" here.
and here.

+               {
+ vshPrint(ctl, "%d: %.0f MB\n", cell, (float)memory/1024/1024);

Florian


Yes you are right.

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]