Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
fcdbd4ad
Commit
fcdbd4ad
authored
Mar 23, 2006
by
Jonathon Duerig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor bugfix with replay
parent
12c77c64
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
pelab/stub/stubd.c
pelab/stub/stubd.c
+7
-4
No files found.
pelab/stub/stubd.c
View file @
fcdbd4ad
...
...
@@ -776,7 +776,7 @@ int send_bandwidth_to_monitor(int monitor, int index)
buf
+=
SIZEOF_LONG
;
// Insert the bandwidth
bandwidth
=
htonl
(
bandwidth
+
bandwidth
/
4
);
bandwidth
=
htonl
(
bandwidth
);
memcpy
(
buf
,
&
bandwidth
,
SIZEOF_LONG
);
buf
+=
SIZEOF_LONG
;
...
...
@@ -1265,9 +1265,12 @@ int main(int argc, char *argv[]) {
// printf("Total: %d\n", total_size);
// printf("========== Quantum %lu ==========\n", quantum_no);
logWrite
(
MAIN_LOOP
,
NULL
,
"Quantum %lu"
,
quantum_no
);
if
(
is_live
)
{
update_stats
();
logWrite
(
MAIN_LOOP
,
NULL
,
"PCAP Received: %u Dropped: %u"
,
received_stat
(),
dropped_stat
());
}
quantum_no
++
;
//while in a quanta
...
...
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