mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-23 03:06:48 +00: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
|
@ -191,7 +191,7 @@ main(int argc, char *argv[])
|
|||
localtime(&ab.ac_btime));
|
||||
(void)printf(" %s", buf);
|
||||
} else
|
||||
(void)printf(" %.16s", ctime(&ab.ac_btime));
|
||||
(void)printf(" %.19s", ctime(&ab.ac_btime));
|
||||
}
|
||||
|
||||
/* exit time (starting time + elapsed time )*/
|
||||
|
@ -203,7 +203,7 @@ main(int argc, char *argv[])
|
|||
localtime(&t));
|
||||
(void)printf(" %s", buf);
|
||||
} else
|
||||
(void)printf(" %.16s", ctime(&t));
|
||||
(void)printf(" %.19s", ctime(&t));
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue