Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 4cha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
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
Commits
a19d80c9
Commit
a19d80c9
authored
May 12, 2012
by
root
Committed by
Alessandro Rubini
May 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NewLogger: flush invalid timestamps from first 2s
parent
5d210737
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
fdelay-gs.c
NewLogger/fdelay-gs.c
+8
-0
No files found.
NewLogger/fdelay-gs.c
View file @
a19d80c9
...
...
@@ -374,9 +374,17 @@ void handle_readout(struct board_def *bdef)
{
int64_t
t_ps
;
struct
fdelay_time
t
;
static
time_t
start
;
int
done
;
while
(
fdelay_read
(
bdef
->
b
,
&
t
,
1
,
O_NONBLOCK
)
==
1
)
{
if
(
!
start
)
start
=
time
(
NULL
);
if
(
!
done
)
{
done
=
time
(
NULL
)
-
start
>
1
;
if
(
!
done
)
continue
;
}
t_ps
=
(
t
.
coarse
*
8000LL
)
+
((
t
.
frac
*
8000LL
)
>>
12
);
printf
(
"seq %5i: time %lli s, %lli.%03lli ns [%x]
\n
"
,
t
.
seq_id
,
t
.
utc
,
t_ps
/
1000LL
,
t_ps
%
1000LL
,
t
.
coarse
);
log_write
(
&
t
,
bdef
->
hw_index
);
...
...
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