mirror of
https://github.com/smxi/inxi.git
synced 2025-01-31 18:12:21 +00:00
tiny correction, forgot short inxi to use MiB for ram
This commit is contained in:
parent
9aecb6103b
commit
7ff7642e6d
2
inxi
2
inxi
|
@ -14110,7 +14110,7 @@ sub get_memory_data_linux {
|
|||
my $percent = ($used && $total) ? sprintf("%.1f", ($used/$total)*100) : '';
|
||||
if ($type eq 'string'){
|
||||
$percent = " ($percent%)" if $percent;
|
||||
$memory = sprintf("%.1f/%.1f MB", $used/1024, $total/1024) . $percent;
|
||||
$memory = sprintf("%.1f/%.1f MiB", $used/1024, $total/1024) . $percent;
|
||||
}
|
||||
else {
|
||||
$memory = "$total:$used:$percent";
|
||||
|
|
Loading…
Reference in a new issue