You've already forked gitified_old_clb_svn
22 lines
379 B
C
22 lines
379 B
C
#include "shell.h"
|
|
#include "endpoint.h"
|
|
#include <string.h>
|
|
#include <wrc.h>
|
|
|
|
static int cmd_stat(const char *args[])
|
|
{
|
|
if (!strcasecmp(args[0], "cont")) {
|
|
wrc_ui_mode = UI_STAT_MODE;
|
|
} else if (!strcasecmp(args[0], "bts"))
|
|
mprintf("%d ps\n", ep_get_bitslide());
|
|
else
|
|
wrc_log_stats(1);
|
|
|
|
return 0;
|
|
}
|
|
|
|
DEFINE_WRC_COMMAND(stat) = {
|
|
.name = "stat",
|
|
.exec = cmd_stat,
|
|
};
|