Skip to content

Commit bc6b97b

Browse files
committed
support allocat memory by percentage
Signed-off-by: FingerLeader <[email protected]>
1 parent 208da8b commit bc6b97b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func run(length uint64, timeLine time.Duration) {
6767
} else {
6868
sysPageSize := os.Getpagesize()
6969
for i := 0; uint64(i) < length; i += sysPageSize {
70-
data[i] = 1
70+
data[i] = 0
7171
}
7272
}
7373

0 commit comments

Comments
 (0)