diff options
author | 2023-01-27 03:54:30 -0800 | |
---|---|---|
committer | 2023-01-27 03:54:30 -0800 | |
commit | 724f23c19f505a4ec18f96a047493fc5851a34b2 (patch) | |
tree | 1f4c0f9dcaa611b4010fec754d9829fd459ff70a | |
parent | ddca89f425e72dfdd8afa75a3a1d5b473cc2cc65 (diff) | |
download | bun-724f23c19f505a4ec18f96a047493fc5851a34b2.tar.gz bun-724f23c19f505a4ec18f96a047493fc5851a34b2.tar.zst bun-724f23c19f505a4ec18f96a047493fc5851a34b2.zip |
Update watcher.zig
-rw-r--r-- | src/watcher.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/watcher.zig b/src/watcher.zig index 954bd0aa3..5b3fa5778 100644 --- a/src/watcher.zig +++ b/src/watcher.zig @@ -108,13 +108,13 @@ pub const INotify = struct { std.os.inotify_rm_watch(inotify_fd, wd); } - var coalesce_interval: usize = 100_000; + var coalesce_interval: isize = 100_000; pub fn init() !void { std.debug.assert(!loaded_inotify); loaded_inotify = true; if (std.os.getenvZ("BUN_INOTIFY_COALESCE_INTERVAL")) |env| { - coalesce_interval = std.fmt.parseInt(usize, env, 10) catch 100_000; + coalesce_interval = std.fmt.parseInt(isize, env, 10) catch 100_000; } inotify_fd = try std.os.inotify_init1(IN_CLOEXEC); |