Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
8418ca20
Commit
8418ca20
authored
Jul 15, 2013
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Xtt logging scantime min limit 10 ms removed
parent
de8ab792
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
xtt/lib/xtt/src/xtt_logging.cpp
xtt/lib/xtt/src/xtt_logging.cpp
+5
-5
xtt/lib/xtt/src/xtt_logging.h
xtt/lib/xtt/src/xtt_logging.h
+2
-2
xtt/lib/xtt/src/xtt_xnav.cpp
xtt/lib/xtt/src/xtt_xnav.cpp
+1
-1
xtt/lib/xtt/src/xtt_xnav_command.cpp
xtt/lib/xtt/src/xtt_xnav_command.cpp
+2
-2
No files found.
xtt/lib/xtt/src/xtt_logging.cpp
View file @
8418ca20
...
...
@@ -186,7 +186,7 @@ XttLogging::~XttLogging()
**************************************************************************/
int
XttLogging
::
logging_set
(
in
t
a_logg_time
,
floa
t
a_logg_time
,
char
*
filename
,
char
*
parameter
,
char
*
condition
,
...
...
@@ -467,7 +467,7 @@ int XttLogging::show_entry(
" Type: Cont
\n
"
);
(
*
buff_cnt
)
+=
sprintf
(
buff
+
*
buff_cnt
,
" Time: %
d
ms
\n
"
,
logg_time
);
" Time: %
5.1f
ms
\n
"
,
logg_time
);
(
*
buff_cnt
)
+=
sprintf
(
buff
+
*
buff_cnt
,
" Buffer: %d pages
\n
"
,
buffer_size
);
(
*
buff_cnt
)
+=
sprintf
(
buff
+
*
buff_cnt
,
...
...
@@ -543,7 +543,7 @@ int XttLogging::store(
fprintf
(
outfile
,
"logging set/create/entry=current/file=
\"
%s
\"\n
"
,
logg_filename
);
if
(
logg_time
!=
0
)
fprintf
(
outfile
,
"logging set/entry=current/time=%
d
\n
"
,
fprintf
(
outfile
,
"logging set/entry=current/time=%
f
\n
"
,
logg_time
);
fprintf
(
outfile
,
"logging set/entry=current/buffer=%d
\n
"
,
wanted_buffer_size
);
...
...
@@ -1014,7 +1014,7 @@ static void *xtt_logproc( void *arg)
break
;
}
time_
MsToD
(
&
deltatime
,
logg
->
logg_time
);
time_
FloatToD
(
&
deltatime
,
logg
->
logg_time
/
1000
);
if
(
logg
->
logg_priority
!=
0
)
sts
=
logg
->
set_prio
(
logg
->
logg_priority
);
...
...
@@ -1073,7 +1073,7 @@ static void *xtt_logproc( void *arg)
if
(
first_scan
)
time_float
=
0.
;
/* Print time and the value of the parameter on the file */
char_cnt
+=
logg
->
log_print
(
"%1
1.3
f"
,
time_float
);
char_cnt
+=
logg
->
log_print
(
"%1
2.4
f"
,
time_float
);
for
(
i
=
0
;
i
<
RTT_LOGG_MAXPAR
;
i
++
)
{
if
(
logg
->
parameterstr
[
i
][
0
]
!=
0
)
...
...
xtt/lib/xtt/src/xtt_logging.h
View file @
8418ca20
...
...
@@ -82,7 +82,7 @@ class XttLogging {
pwr_tAName
conditionstr
;
char
*
condition_ptr
;
gdh_tDlid
condition_subid
;
int
logg_time
;
float
logg_time
;
pwr_tFileName
logg_filename
;
FILE
*
logg_file
;
char
old_value
[
RTT_LOGG_MAXPAR
][
8
];
...
...
@@ -105,7 +105,7 @@ class XttLogging {
void
init
(
int
logg_index
,
void
*
logg_xnav
);
int
logging_set
(
in
t
logg_time
,
floa
t
logg_time
,
char
*
filename
,
char
*
parameterstr
,
char
*
conditionstr
,
...
...
xtt/lib/xtt/src/xtt_xnav.cpp
View file @
8418ca20
...
...
@@ -3148,7 +3148,7 @@ int XNav::show_logging( int index)
flow_eDest_IntoLast
,
command
,
0
,
brow
->
pixmap_action
);
new
ItemLocal
(
brow
,
Lng
::
translate
(
"Time (ms)"
),
"logg_Time"
,
pwr_eType_
Int32
,
sizeof
(
logg
[
0
].
logg_time
),
1
0
,
100000
,
0
,
pwr_eType_
Float32
,
sizeof
(
logg
[
0
].
logg_time
),
0
,
100000
,
0
,
(
void
*
)
&
logg
[
index
].
logg_time
,
NULL
,
flow_eDest_IntoLast
);
new
ItemLocal
(
brow
,
Lng
::
translate
(
"File "
),
"logg_File"
,
pwr_eType_String
,
sizeof
(
logg
[
0
].
logg_filename
),
0
,
0
,
0
,
...
...
xtt/lib/xtt/src/xtt_xnav_command.cpp
View file @
8418ca20
...
...
@@ -5591,7 +5591,7 @@ static int xnav_logging_func( void *client_data,
int
entry
;
int
line_size
;
char
*
parameter_ptr
;
in
t
logg_time
;
floa
t
logg_time
;
char
*
file_ptr
;
char
*
condition_ptr
;
int
buffer_size
;
...
...
@@ -5632,7 +5632,7 @@ static int xnav_logging_func( void *client_data,
if
(
ODD
(
dcli_get_qualifier
(
"/TIME"
,
time_str
,
sizeof
(
time_str
))))
{
/* convert to integer */
nr
=
sscanf
(
time_str
,
"%
d
"
,
&
logg_time
);
nr
=
sscanf
(
time_str
,
"%
f
"
,
&
logg_time
);
if
(
nr
!=
1
)
{
xnav
->
message
(
'E'
,
"Time syntax error"
);
...
...
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