mirror of
https://github.com/opnsense/src.git
synced 2026-07-16 12:33:07 -04:00
wlanstats: print timestamp
Print timestamp in addition to data for more useful debugging. Discussed with: adrian
This commit is contained in:
parent
2309fa9b92
commit
cb48cb23cb
1 changed files with 5 additions and 0 deletions
|
|
@ -38,6 +38,7 @@
|
|||
#include <err.h>
|
||||
#include <net/if.h>
|
||||
#include <sys/endian.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/sysctl.h>
|
||||
|
||||
|
|
@ -239,9 +240,13 @@ static void
|
|||
iwn_print(struct iwnstats *is)
|
||||
{
|
||||
struct iwn_stats *s;
|
||||
struct timeval tv;
|
||||
|
||||
s = &is->st;
|
||||
|
||||
gettimeofday(&tv, NULL);
|
||||
printf("time=%ld.%.6ld\n", (long)tv.tv_sec, (long)tv.tv_usec);
|
||||
|
||||
iwn_stats_general_print(is, s);
|
||||
|
||||
/* RX */
|
||||
|
|
|
|||
Loading…
Reference in a new issue