Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
b6d44191
Commit
b6d44191
authored
Sep 16, 2020
by
Antoine Kaufmann
Browse files
libnicbm: fixes for unsynchronized operation
parent
0a67f9b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
libnicbm/nicbm.cc
libnicbm/nicbm.cc
+4
-1
No files found.
libnicbm/nicbm.cc
View file @
b6d44191
...
...
@@ -332,6 +332,7 @@ Runner::Runner(Device &dev_)
int
Runner
::
runMain
(
int
argc
,
char
*
argv
[])
{
uint64_t
next_ts
;
uint64_t
max_step
=
10000
;
if
(
argc
!=
4
&&
argc
!=
5
)
{
fprintf
(
stderr
,
"Usage: corundum_bm PCI-SOCKET ETH-SOCKET "
...
...
@@ -376,8 +377,10 @@ int Runner::runMain(int argc, char *argv[])
if
(
is_sync
)
{
next_ts
=
netsim_next_timestamp
(
&
nsparams
);
if
(
next_ts
>
main_time
+
max_step
)
next_ts
=
main_time
+
max_step
;
}
else
{
next_ts
=
main_time
+
100000
;
next_ts
=
main_time
+
max_step
;
}
uint64_t
ev_ts
;
...
...
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