statistics: fix a remarkably bungled wrapper
keyboards are hard.
This commit is contained in:
parent
b101e0acd2
commit
3816f32101
@ -29,14 +29,14 @@ pub const Statistics = opaque {
|
|||||||
|
|
||||||
pub fn getCounts(self: *Statistics) Error!StatsCounts {
|
pub fn getCounts(self: *Statistics) Error!StatsCounts {
|
||||||
var counts: StatsCounts = .{};
|
var counts: StatsCounts = .{};
|
||||||
const status = Status.fromInt(nats_c.natsStatistics_GetCounts)(
|
const status = Status.fromInt(nats_c.natsStatistics_GetCounts(
|
||||||
self,
|
@ptrCast(self),
|
||||||
&counts.messages_in,
|
&counts.messages_in,
|
||||||
&counts.bytes_in,
|
&counts.bytes_in,
|
||||||
&counts.messages_out,
|
&counts.messages_out,
|
||||||
&counts.bytes_out,
|
&counts.bytes_out,
|
||||||
&counts.reconnects,
|
&counts.reconnects,
|
||||||
);
|
));
|
||||||
return status.toError() orelse counts;
|
return status.toError() orelse counts;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user