Skip to content

Commit 9460172

Browse files
committed
Fixed missing suffix for bytes unit
1 parent 5eb392b commit 9460172

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scopehal/Unit.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@ void Unit::GetUnitSuffix(UnitType type, double num, double& scaleFactor, string&
553553

554554
//Bytes: use binary rather than decimal scaling factors
555555
case UNIT_BYTES:
556+
suffix = "B";
556557
if(scaleFactor <= 1e-9)
557558
scaleFactor = 1.0 / (1024 * 1024 * 1024);
558559
else if(scaleFactor <= 1e-6)

0 commit comments

Comments
 (0)