summaryrefslogtreecommitdiff
path: root/src/ninep/pane.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/ninep/pane.zig')
-rw-r--r--src/ninep/pane.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ninep/pane.zig b/src/ninep/pane.zig
index ab4b2d7d..4595d02d 100644
--- a/src/ninep/pane.zig
+++ b/src/ninep/pane.zig
@@ -564,7 +564,7 @@ pub const batch_pause_ns: u64 = 20 * std.time.ns_per_ms;
pub fn flushPausedBatch(p: *Pardes) void {
const b = &p.fs.batch;
if (b.bytes.items.len == 0) return;
- if (p.now_ns != 0 and p.now_ns -| b.last_ns < batch_pause_ns) return;
+ if (p.clock.now_ns != 0 and p.clock.now_ns -| b.last_ns < batch_pause_ns) return;
flushBatch(p);
}
@@ -606,7 +606,7 @@ fn holdWrite(p: *Pardes, req: Req, pane: *Pane, at: usize) error{OutOfMemory}!?u
if (b.bytes.items.len == 0) b.* = .{ .serial = pane.serial, .node = req.node, .handle = req.handle, .at = at, .bytes = b.bytes };
const take = wholeUtf8(req.data);
try b.bytes.appendSlice(p.gpa, req.data[0..take]);
- b.last_ns = p.now_ns;
+ b.last_ns = p.clock.now_ns;
return take;
}
@@ -1083,7 +1083,7 @@ test "writes held before the shell's clock is first seen go in at its first step
const p = try withFile(testing.allocator, "one\n");
defer p.deinit();
const body = Node.of(serialOf(p), .body);
- try testing.expect(!p.clock_started);
+ try testing.expect(!p.clock.started);
const h = call(p, .{ .tag = 1, .op = .open, .node = body, .omode = 1 }).reply.handle;
const revision = p.panes[0].?.file.?.revision;
_ = call(p, .{ .tag = 2, .op = .write, .node = body, .handle = h, .data = "x\n" });