summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordemo <demo@antix1>2026-05-29 11:29:09 -0400
committerdemo <demo@antix1>2026-05-29 11:29:09 -0400
commitb5ed390f1b8b63d5568f9f2d044a362e82344e80 (patch)
tree8d9d28bcded7d5cf281278aceebd4d675a877398
parente0e6d43095e93d65833dcebe79ec85778c29eb32 (diff)
fix: convert byte-formatted numbers into ordinary uint64
-rw-r--r--cmds.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmds.go b/cmds.go
index 241897c..233a08f 100644
--- a/cmds.go
+++ b/cmds.go
@@ -70,7 +70,9 @@ func (ctrl controller) cmdList() error {
b := tx.Bucket([]byte(ctrl.tasksBucketName))
b.ForEach(func(k, v []byte) error {
- fmt.Printf("%s. %s\n", k, v)
+ index := binary.BigEndian.Uint64(k)
+
+ fmt.Printf("%d. %s\n", index, v)
return nil
})