SCP: Display capacity as KB or MB for even multiple sizes
This commit is contained in:
parent
1d133bfc8e
commit
c5e3becc73
1 changed files with 5 additions and 2 deletions
7
scp.c
7
scp.c
|
@ -5700,9 +5700,12 @@ if ((dptr->dwidth / dptr->aincr) > 8)
|
|||
width = "W";
|
||||
else
|
||||
width = "B";
|
||||
if (psize < (kval * 10))
|
||||
if ((psize < (kval * 10)) &&
|
||||
(0 != (psize % kval))) {
|
||||
scale = "";
|
||||
else if (psize < (mval * 10)) {
|
||||
}
|
||||
else if ((psize < (mval * 10)) &&
|
||||
(0 != (psize % mval))){
|
||||
scale = "K";
|
||||
psize = psize / kval;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue