File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ pub struct Cli {
34
34
pub long : bool ,
35
35
36
36
/// Formats the time output
37
- #[ structopt( long = "time-format" , default_value = "%e %b %T " ) ]
37
+ #[ structopt( long = "time-format" , default_value = "%e %b %H.%M " ) ]
38
38
pub time_format : String ,
39
39
40
40
/// Shows the file created time instead of the file modified time
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ impl Directory {
255
255
. unwrap ( )
256
256
)
257
257
} ) ,
258
- DirSortType :: Size => sort_as ( & mut self . paths , |a, b| {
258
+ DirSortType :: Size => sort_as ( & mut self . paths , |a, b| {
259
259
a. path
260
260
. symlink_metadata ( )
261
261
. unwrap ( )
@@ -266,7 +266,7 @@ impl Directory {
266
266
. size ( )
267
267
)
268
268
} ) ,
269
- DirSortType :: Not => ( ) ,
269
+ DirSortType :: Not => ( ) ,
270
270
}
271
271
}
272
272
@@ -299,15 +299,15 @@ impl Directory {
299
299
let uhold = self . paths [ p] . user . to_owned ( ) ;
300
300
let shold = self . paths [ p] . size . to_owned ( ) ;
301
301
let mut gwidth = String :: new ( ) ;
302
- for _ in 0 ..( gs - ghold. len ( ) ) {
303
- gwidth. push ( ' ' )
302
+ for _ in 0 ..( gs - ghold. len ( ) + 1 ) {
303
+ gwidth. push ( ' ' ) ;
304
304
}
305
305
let mut uwidth = String :: new ( ) ;
306
- for _ in 0 ..( us - uhold. len ( ) ) {
306
+ for _ in 0 ..( us - uhold. len ( ) + 1 ) {
307
307
uwidth. push ( ' ' )
308
308
}
309
309
let mut swidth = String :: new ( ) ;
310
- for _ in 0 ..( ss - shold. len ( ) ) {
310
+ for _ in 0 ..( ss - shold. len ( ) + 1 ) {
311
311
swidth. push ( ' ' )
312
312
}
313
313
self . paths [ p] . group = format ! ( "{}{}" , ghold, gwidth) ;
You can’t perform that action at this time.
0 commit comments