mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
No need to work around SCCS variable expansion any more.
This commit is contained in:
parent
b6c8407840
commit
63743cbd8c
1 changed files with 2 additions and 6 deletions
|
|
@ -366,13 +366,9 @@ started(k, ve)
|
|||
if (!now)
|
||||
(void)time(&now);
|
||||
if (now - k->ki_u.u_start.tv_sec < 24 * 3600) {
|
||||
/* I *hate* SCCS... */
|
||||
static char fmt[] = __CONCAT("%l:%", "M%p");
|
||||
(void)strftime(buf, sizeof(buf) - 1, fmt, tp);
|
||||
(void)strftime(buf, sizeof(buf) - 1, "%l:%M%p", tp);
|
||||
} else if (now - k->ki_u.u_start.tv_sec < 7 * 86400) {
|
||||
/* I *hate* SCCS... */
|
||||
static char fmt[] = __CONCAT("%a%", "I%p");
|
||||
(void)strftime(buf, sizeof(buf) - 1, fmt, tp);
|
||||
(void)strftime(buf, sizeof(buf) - 1, "%a%I%p", tp);
|
||||
} else
|
||||
(void)strftime(buf, sizeof(buf) - 1, "%e%b%y", tp);
|
||||
(void)printf("%-*s", v->width, buf);
|
||||
|
|
|
|||
Loading…
Reference in a new issue