diff options
author | Ruediger Meier | 2015-03-24 12:22:13 +0100 |
---|---|---|
committer | Ruediger Meier | 2015-03-25 10:36:52 +0100 |
commit | 2e81d99870920a8f9a79a00221839ce8c8cb3400 (patch) | |
tree | c4808b6ebecac8a311d280f94959267d3dd3538d /include/pt-mbr.h | |
parent | last: fix first (current) runlevel line (diff) | |
download | kernel-qcow2-util-linux-2e81d99870920a8f9a79a00221839ce8c8cb3400.tar.gz kernel-qcow2-util-linux-2e81d99870920a8f9a79a00221839ce8c8cb3400.tar.xz kernel-qcow2-util-linux-2e81d99870920a8f9a79a00221839ce8c8cb3400.zip |
last, fix race when comparing time stamps
It is just luck if two time() calls happen within the same
second. Introduced in 31d28e09.
Actually I don't like adding another global variable but this
way we avoid bigger refactoring. IMO it's questionable why
lastdate, lastdown, etc. are initialized with current time() at
all. It looks unsafe to print "still running" always when
logout_time = now.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'include/pt-mbr.h')
0 files changed, 0 insertions, 0 deletions