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
231845af
Commit
231845af
authored
Jan 15, 2005
by
Kirk Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of some debugging stuff.
parent
8c98fc4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
sensors/slothd/slothd.c
sensors/slothd/slothd.c
+2
-9
No files found.
sensors/slothd/slothd.c
View file @
231845af
...
...
@@ -242,12 +242,7 @@ int parse_args(int argc, char **argv) {
break
;
case
'h'
:
usage
();
exit
(
0
);
break
;
default:
printf
(
"Unknown option: %c
\n
"
,
ch
);
usage
();
return
-
1
;
break
;
...
...
@@ -584,8 +579,6 @@ void get_packet_counts(SLOTHD_PACKET *pkt) {
#ifndef __CYGWIN__
int
get_counters
(
char
*
buf
,
void
*
data
)
{
int
nscan
=
0
;
SLOTHD_PACKET
*
pkt
=
(
SLOTHD_PACKET
*
)
data
;
#ifdef __linux__
struct
ifreq
ifr
;
...
...
@@ -603,13 +596,13 @@ int get_counters(char *buf, void *data) {
#endif
{
if
(
(
nscan
=
sscanf
(
buf
,
CNTFMTSTR
,
if
(
sscanf
(
buf
,
CNTFMTSTR
,
pkt
->
ifaces
[
pkt
->
ifcnt
].
ifname
,
#ifdef __FreeBSD__
pkt
->
ifaces
[
pkt
->
ifcnt
].
addr
,
#endif
&
pkt
->
ifaces
[
pkt
->
ifcnt
].
ipkts
,
&
pkt
->
ifaces
[
pkt
->
ifcnt
].
opkts
)
)
!=
NUMSCAN
)
{
&
pkt
->
ifaces
[
pkt
->
ifcnt
].
opkts
)
!=
NUMSCAN
)
{
printf
(
"Failed to parse netinfo output.
\n
"
);
return
-
1
;
}
...
...
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