Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 4cha - Software
Project
Project
Details
Activity
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
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC DEL 1ns 4cha - Software
Commits
c984d0a0
Commit
c984d0a0
authored
May 02, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fd-raw-input: fixed sequence reporting
parent
ff5c9fbd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
fd-raw-input.c
tools/fd-raw-input.c
+8
-6
No files found.
tools/fd-raw-input.c
View file @
c984d0a0
...
...
@@ -31,7 +31,7 @@ struct zio_control ctrl;
int
main
(
int
argc
,
char
**
argv
)
{
glob_t
glob_buf
;
int
fd
[
MAXFD
];
int
fd
[
MAXFD
]
,
seq
[
MAXFD
]
;
int
i
,
j
,
maxfd
=
0
,
sequence
,
last
=
0
;
fd_set
allset
,
curset
;
int
floatmode
=
0
;
...
...
@@ -78,6 +78,7 @@ int main(int argc, char **argv)
if
(
fd
[
i
]
>
maxfd
)
maxfd
=
fd
[
i
];
FD_SET
(
fd
[
i
],
&
allset
);
seq
[
i
]
=
-
1
;
}
/* Ok, now wait for each of them to spit a timestamp */
...
...
@@ -108,11 +109,12 @@ int main(int argc, char **argv)
}
attrs
=
ctrl
.
attr_channel
.
ext_val
;
sequence
=
attrs
[
FD_ATTR_TDC_SEQ
];
if
(
sequence
-
last
!=
1
)
printf
(
"%s: LOST %i events
\n
"
,
argv
[
i
],
sequence
-
last
-
1
);
last
=
sequence
;
if
(
seq
[
i
]
!=
-
1
)
{
if
(
sequence
-
seq
[
i
]
!=
1
)
printf
(
"%s: LOST %i events
\n
"
,
argv
[
i
],
sequence
-
seq
[
i
]
-
1
);
}
seq
[
i
]
=
sequence
;
printf
(
"%s: "
,
argv
[
i
]);
if
(
floatmode
)
{
t2
=
attrs
[
FD_ATTR_TDC_UTC_L
]
+
...
...
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