Commit 52e9f7f
fix(storage): widen disk size matching tolerance to ±2 GB
Adjust the nominal disk capacity boundaries in checkDiskSize() from
±1 GB to ±2 GB so that storage devices whose reported byte count
deviates slightly more from the nominal value are still matched to
the standard 256 GB / 512 GB / 1 TB / 2 TB labels.
将 checkDiskSize() 中磁盘容量匹配的上下限容差从 ±1 GB 调整为
±2 GB,使上报字节数偏离标称值稍大的存储设备仍能匹配到标准的
256 GB / 512 GB / 1 TB / 2 TB 标签。
Log: 调整磁盘容量匹配上下限至±2GB
PMS: 372871
Influence: checkDiskSize 的容量匹配逻辑,影响定制机型存储设备的容量显示规范化1 parent 1e9928e commit 52e9f7f
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
580 | | - | |
| 580 | + | |
581 | 581 | | |
582 | | - | |
| 582 | + | |
583 | 583 | | |
584 | | - | |
| 584 | + | |
585 | 585 | | |
586 | | - | |
| 586 | + | |
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
| |||
0 commit comments