Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface-test
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董子豪
interface-test
Commits
e2bf7a1a
Commit
e2bf7a1a
authored
Nov 09, 2021
by
董子豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change the random file range
parent
1b2f0f17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
user_runner.go
actor/user/user_runner.go
+1
-1
No files found.
actor/user/user_runner.go
View file @
e2bf7a1a
...
@@ -54,7 +54,7 @@ func RunUser(ctx context.Context, conn *connect.Connection, root string, numFile
...
@@ -54,7 +54,7 @@ func RunUser(ctx context.Context, conn *connect.Connection, root string, numFile
log
.
Infof
(
"Generating random data"
)
log
.
Infof
(
"Generating random data"
)
filename
:=
filepath
.
Join
(
root
,
fmt
.
Sprintf
(
"input-%d.dat"
,
i
))
filename
:=
filepath
.
Join
(
root
,
fmt
.
Sprintf
(
"input-%d.dat"
,
i
))
r
:=
rand
.
New
(
rand
.
NewSource
(
time
.
Now
()
.
UnixNano
()))
r
:=
rand
.
New
(
rand
.
NewSource
(
time
.
Now
()
.
UnixNano
()))
dataSize
:=
uint64
(
r
.
Int63n
(
int64
(
sectorSize
*
6
)))
+
6
*
sectorSize
dataSize
:=
uint64
(
r
.
Int63n
(
int64
(
sectorSize
*
6
)))
+
2
*
sectorSize
b
,
err
=
seal
.
GenerateRandomData
(
filename
,
dataSize
,
b
)
b
,
err
=
seal
.
GenerateRandomData
(
filename
,
dataSize
,
b
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment