mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-11-03 21:49:42 -09:00
Zig 0.16: std.time.Timer -> std.Io.Timestamp
This commit is contained in:
parent
1d577abefe
commit
6862d1d5cb
1 changed files with 2 additions and 2 deletions
|
|
@ -552,7 +552,7 @@ pub fn main(init: std.process.Init) void {
|
|||
ui.die("Standard input is not a TTY. Did you mean to import a file using '-f -'?\n", .{});
|
||||
config.nc_tty = !in_tty or (if (export_json orelse export_bin) |f| std.mem.eql(u8, f, "-") else false);
|
||||
|
||||
event_delay_timer = std.time.Timer.start() catch unreachable;
|
||||
event_delay_timer = std.Io.Timestamp.now(io, .awake);
|
||||
defer ui.deinit();
|
||||
|
||||
if (export_json) |f| {
|
||||
|
|
@ -627,7 +627,7 @@ pub fn main(init: std.process.Init) void {
|
|||
}
|
||||
}
|
||||
|
||||
pub var event_delay_timer: std.time.Timer = undefined;
|
||||
pub var event_delay_timer: std.Io.Timestamp = undefined;
|
||||
|
||||
// Draw the screen and handle the next input event.
|
||||
// In non-blocking mode, screen drawing is rate-limited to keep this function fast.
|
||||
|
|
|
|||
Loading…
Reference in a new issue