update scripts

This commit is contained in:
LordMZTE 2024-03-19 22:02:31 +01:00
parent 4573d015a1
commit 5ba7cc86f6
Signed by: LordMZTE
GPG Key ID: B64802DC33A64FF6
4 changed files with 10 additions and 10 deletions

View File

@ -120,8 +120,8 @@ fn streamlinkThread(state: *State, channel: []const u8) !void {
fn chattyThread(state: *State, child: std.ChildProcess, arena: std.heap.ArenaAllocator) !void {
// no need to get the mutex here, chatty_alive is atomic
@atomicStore(bool, &state.chatty_alive, true, .Unordered);
defer @atomicStore(bool, &state.chatty_alive, false, .Unordered);
@atomicStore(bool, &state.chatty_alive, true, .unordered);
defer @atomicStore(bool, &state.chatty_alive, false, .unordered);
var ch = child;
defer arena.deinit();

View File

@ -36,8 +36,8 @@ pub fn tryFetchChannelsLive(s: *State) void {
}
fn fetchChannelsLive(s: *State) !void {
@atomicStore(bool, &s.live_status_loading, true, .Unordered);
defer @atomicStore(bool, &s.live_status_loading, false, .Unordered);
@atomicStore(bool, &s.live_status_loading, true, .unordered);
defer @atomicStore(bool, &s.live_status_loading, false, .unordered);
log.info("initiaizing cURL", .{});
const curl = c.curl_easy_init();
if (curl == null)
@ -96,12 +96,12 @@ fn fetchChannelsLive(s: *State) !void {
}
if (tries == 0) {
@atomicStore(State.Live, &chan.live, .err, .Unordered);
@atomicStore(State.Live, &chan.live, .err, .unordered);
}
if (std.mem.containsAtLeast(u8, page_buf.items, 1, "live_user")) {
@atomicStore(State.Live, &chan.live, .live, .Unordered);
@atomicStore(State.Live, &chan.live, .live, .unordered);
} else {
@atomicStore(State.Live, &chan.live, .offline, .Unordered);
@atomicStore(State.Live, &chan.live, .offline, .unordered);
}
}
}

View File

@ -8,8 +8,8 @@
.hash = "1220d6448c277e5c41348aa95ce2ba2fc92a92cb7a9e9783edf0f816cd0260122d31",
},
.xev = .{
.url = "git+https://github.com/mitchellh/libxev#2494978bedec01a856e8f3c47a33148ad1755fab",
.hash = "12203de3dbf9c235903c71122448ef031622ba8d64b250205934e2a65018b92b9717",
.url = "git+https://github.com/mitchellh/libxev#418cac65473668b02cc5a85194042bdaf04acd00",
.hash = "12203116ff408eb48f81c947dfeb06f7feebf6a9efa962a560ac69463098b2c04a96",
},
},
}

View File

@ -28,7 +28,7 @@ const Collector = col: {
}};
}
break :col @Type(.{ .Struct = .{
.layout = .Auto,
.layout = .auto,
.fields = fields,
.decls = &.{},
.is_tuple = false,