mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
who: fix ~ remove unneeded/incorrect time format size change
This commit is contained in:
parent
9416709c9c
commit
244bdf3d4f
1 changed files with 1 additions and 4 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue