mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-13 01:08:41 -09:00
Use Stat.mtime() instead of .mtim
Aha, so that's why the mtime() method exists, the field has a different name on some other systems. Fixes #258
This commit is contained in:
parent
653c3bfe70
commit
58e6458130
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ fn statAt(parent: std.fs.Dir, name: [:0]const u8, follow: bool, symlink: *bool)
|
||||||
.hasgid = true,
|
.hasgid = true,
|
||||||
.hasmode = true,
|
.hasmode = true,
|
||||||
},
|
},
|
||||||
.mtime = clamp(model.Ext, .mtime, stat.mtim.sec),
|
.mtime = clamp(model.Ext, .mtime, stat.mtime().sec),
|
||||||
.uid = truncate(model.Ext, .uid, stat.uid),
|
.uid = truncate(model.Ext, .uid, stat.uid),
|
||||||
.gid = truncate(model.Ext, .gid, stat.gid),
|
.gid = truncate(model.Ext, .gid, stat.gid),
|
||||||
.mode = truncate(model.Ext, .mode, stat.mode),
|
.mode = truncate(model.Ext, .mode, stat.mode),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue