We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd58fb5 commit b921bb0Copy full SHA for b921bb0
src/RustyObjectStore.jl
@@ -2004,12 +2004,11 @@ function invalidate_config(conf::Option{AbstractConfig}=nothing)
2004
end
2005
2006
2007
-struct Metrics
2008
- live_bytes::Int64
2009
-end
2010
-
2011
function current_metrics()
2012
- return @ccall rust_lib.current_metrics()::Metrics
+ metrics_ptr = @ccall rust_lib.current_metrics()::Ptr{Cchar}
+ metrics_string = unsafe_string(metrics_ptr)
+ metrics = JSON3.read(metrics_string)
+ return metrics
2013
2014
2015
module Test
0 commit comments