mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
lastcomm: improve timestamp display
Adjust the lastcomm command to output timestamps with a precision of seconds. Reported by: Dr. Andreas Longwitz Reviewed by: emaste Relnotes: Yes Sponsored by: DSS Gmbh Pull Request: https://github.com/freebsd/freebsd-src/pull/802
This commit is contained in:
parent
4bdf7f6951
commit
6f4ce7e89b
1 changed files with 2 additions and 2 deletions
|
|
@ -191,7 +191,7 @@ main(int argc, char *argv[])
|
||||||
localtime(&ab.ac_btime));
|
localtime(&ab.ac_btime));
|
||||||
(void)printf(" %s", buf);
|
(void)printf(" %s", buf);
|
||||||
} else
|
} else
|
||||||
(void)printf(" %.16s", ctime(&ab.ac_btime));
|
(void)printf(" %.19s", ctime(&ab.ac_btime));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* exit time (starting time + elapsed time )*/
|
/* exit time (starting time + elapsed time )*/
|
||||||
|
|
@ -203,7 +203,7 @@ main(int argc, char *argv[])
|
||||||
localtime(&t));
|
localtime(&t));
|
||||||
(void)printf(" %s", buf);
|
(void)printf(" %s", buf);
|
||||||
} else
|
} else
|
||||||
(void)printf(" %.16s", ctime(&t));
|
(void)printf(" %.19s", ctime(&t));
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue