Skip to content

Commit

Permalink
Fix UT issue
Browse files Browse the repository at this point in the history
Signed-off-by: stonezdj <[email protected]>
  • Loading branch information
stonezdj committed Sep 27, 2024
1 parent eb379a0 commit 4e3072b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ export class CreateProjectComponent
storageDefaultLimit: number;
storageDefaultLimitUnit: string;
initVal: Project = new Project();
speedLimit: number;
speedLimitUnit: string;
speedLimit: number = -1;
speedLimitUnit: string = BandwidthUnit.KB;
selectedSpeedLimitUnit: string = BandwidthUnit.KB;
speedUnits = [
{
Expand Down Expand Up @@ -327,7 +327,7 @@ export class CreateProjectComponent
}
}
convertSpeedValue(realSpeed: number): number {
if (this.speedLimitUnit == BandwidthUnit.MB) {
if (this.selectedSpeedLimitUnit == BandwidthUnit.MB) {
return realSpeed * KB_TO_MB;
} else {
return realSpeed ? realSpeed : -1;
Expand Down

0 comments on commit 4e3072b

Please sign in to comment.