1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 03:57:44 +00:00

who: fix ~ remove unneeded/incorrect time format size change

This commit is contained in:
Roy Ivy III 2019-12-22 16:48:40 -06:00
parent 9416709c9c
commit 244bdf3d4f

View file

@ -506,10 +506,7 @@ impl Who {
} }
buf.push_str(&format!(" {:<12}", line)); buf.push_str(&format!(" {:<12}", line));
// "%Y-%m-%d %H:%M" // "%Y-%m-%d %H:%M"
let mut time_size = 4 + 1 + 2 + 1 + 2 + 1 + 2 + 1 + 2; let time_size = 4 + 1 + 2 + 1 + 2 + 1 + 2 + 1 + 2;
if !self.has_records {
time_size -= 4;
}
buf.push_str(&format!(" {:<1$}", time, time_size)); buf.push_str(&format!(" {:<1$}", time, time_size));
if !self.short_output { if !self.short_output {