aboutsummaryrefslogtreecommitdiff
path: root/src/watcher.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/watcher.zig')
-rw-r--r--src/watcher.zig4
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);