]> git.ipfire.org Git - thirdparty/util-linux.git/commit
last: fix first (current) runlevel line
authorRuediger Meier <ruediger.meier@ga-group.nl>
Tue, 24 Mar 2015 13:38:09 +0000 (14:38 +0100)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Wed, 25 Mar 2015 09:36:49 +0000 (10:36 +0100)
commit568f460ca3c4ca1fff0c2c7e325a1b709992188c
tree0dde0ce7ead92f311d24787acdbb057cb05b3011
parentd1bba731c6ca1918d03f2a8c144b51f9a8607fda
last: fix first (current) runlevel line

Since 744c7fec lastrch was not set to current time anymore, but we need it.

 # broken:
 $ ./last -x | grep -m 2 runlevel
 runlevel (to lvl 5)   3.11.10-25-deskt Wed Feb 18 13:11 - 01:00 (-16484+-12:-11)
 runlevel (to lvl 5)   3.11.10-25-deskt Thu Jan 22 16:50 - 13:11 (26+20:21)

 # fixed:
 $ ./last -x | grep -m 2 runlevel
 runlevel (to lvl 5)   3.11.10-25-deskt Wed Feb 18 13:11   still running
 runlevel (to lvl 5)   3.11.10-25-deskt Thu Jan 22 16:50 - 13:11 (26+20:21)

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
login-utils/last.c