fix: remove caption

This commit is contained in:
neoarz
2026-01-07 22:55:52 -05:00
parent fd7da43393
commit aa79e5b906
3 changed files with 46 additions and 34 deletions

View File

@@ -1,5 +1,6 @@
// https://github.com/fastfetch-cli/fastfetch/blob/dev/src/detection/memory/memory_apple.c
#[allow(deprecated)]
use libc::{
HOST_VM_INFO64, HOST_VM_INFO64_COUNT, host_statistics64, mach_host_self, vm_statistics64_data_t,
};
@@ -39,6 +40,7 @@ pub fn get_memory_info() -> String {
let mut vmstat: vm_statistics64_data_t = mem::zeroed(); // this this is unsafe we have to manually zero it
if host_statistics64(
#[allow(deprecated)]
mach_host_self(),
HOST_VM_INFO64,
&mut vmstat as *mut _ as *mut _,