Skip to content

Commit dc67d72

Browse files
committed
<fix>[header]: fix __example__ method names for LongJobProgressDetail
setProcessedBytes/setTotalBytes/setSpeedBytesPerSecond renamed to setProcessed/setTotal/setSpeed in unit-agnostic refactor. Add setUnit("bytes") to preserve semantic clarity. Related: ZSTAC-82318 Change-Id: Ied29ac01d488062a03d792378432522fbf0a523f Co-Authored-By: Claude Opus 4.6 (1M context) <ye.zou@zstack.io>
1 parent 39a9a84 commit dc67d72

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

header/src/main/java/org/zstack/header/core/progress/APIGetTaskProgressReply.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ public static APIGetTaskProgressReply __example__() {
3535
detail.setPercent(42);
3636
detail.setStage("downloading");
3737
detail.setState("running");
38-
detail.setProcessedBytes(440401920L);
39-
detail.setTotalBytes(1073741824L);
40-
detail.setSpeedBytesPerSecond(10485760L);
38+
detail.setProcessed(440401920L);
39+
detail.setTotal(1073741824L);
40+
detail.setUnit("bytes");
41+
detail.setSpeed(10485760L);
4142
detail.setEstimatedRemainingSeconds(60L);
4243
inv.setProgressDetail(detail);
4344

0 commit comments

Comments
 (0)