Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
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
Software for White Rabbit PTP Core
Commits
f3f54239
Commit
f3f54239
authored
Apr 07, 2022
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell.h: export wrc_ui_refperiod and wrc_stats_last
parent
a7300fe1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
shell.h
include/shell.h
+6
-0
cmd_refresh.c
shell/cmd_refresh.c
+0
-3
No files found.
include/shell.h
View file @
f3f54239
...
...
@@ -15,6 +15,12 @@
extern
int
wrc_ui_mode
;
extern
int
wrc_stat_running
;
/* refresh period for _gui_ and _stat_ commands */
extern
int
wrc_ui_refperiod
;
/* internal "last", exported to shell command */
extern
uint32_t
wrc_stats_last
;
void
decode_ip
(
const
char
*
str
,
unsigned
char
*
ip
);
char
*
format_ip
(
char
*
s
,
const
unsigned
char
*
ip
);
...
...
shell/cmd_refresh.c
View file @
f3f54239
...
...
@@ -14,8 +14,6 @@
#include <wrc.h>
#include "shell.h"
extern
int
wrc_ui_refperiod
;
static
int
cmd_refresh
(
const
char
*
args
[])
{
int
sec
;
...
...
@@ -29,7 +27,6 @@ static int cmd_refresh(const char *args[])
}
wrc_ui_refperiod
=
sec
*
TICS_PER_SECOND
;
pp_printf
(
"
\n
"
);
return
0
;
}
...
...
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