Commit f3f54239 authored by Tristan Gingold's avatar Tristan Gingold

shell.h: export wrc_ui_refperiod and wrc_stats_last

parent a7300fe1
......@@ -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);
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment