diff --git a/.idea/.gitignore b/.idea/.gitignore index 26d3352..4753c54 100644 --- a/.idea/.gitignore +++ b/.idea/.gitignore @@ -1,3 +1,4 @@ # Default ignored files /shelf/ /workspace.xml +/deploymentTargetSelector.xml \ No newline at end of file diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xml deleted file mode 100644 index 06b3054..0000000 --- a/.idea/deploymentTargetSelector.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/jniLibs/arm64-v8a/libsysinfo.so b/app/src/main/jniLibs/arm64-v8a/libsysinfo.so index 4fecdff..f5959d0 100755 Binary files a/app/src/main/jniLibs/arm64-v8a/libsysinfo.so and b/app/src/main/jniLibs/arm64-v8a/libsysinfo.so differ diff --git a/app/src/main/jniLibs/x86_64/libsysinfo.so b/app/src/main/jniLibs/x86_64/libsysinfo.so index 9979fdf..c8014da 100755 Binary files a/app/src/main/jniLibs/x86_64/libsysinfo.so and b/app/src/main/jniLibs/x86_64/libsysinfo.so differ diff --git a/app/src/main/rust/libsysinfo/src/lib.rs b/app/src/main/rust/libsysinfo/src/lib.rs index 2d17eca..a672950 100644 --- a/app/src/main/rust/libsysinfo/src/lib.rs +++ b/app/src/main/rust/libsysinfo/src/lib.rs @@ -14,7 +14,7 @@ fn get_sys() -> String { let kernel = System::kernel_version(); // In mb (original result is in b) let all_memory = sys.total_memory()/1024/1024; - let free_memory = sys.free_memory()/1024/1024; + let available_memory = sys.available_memory()/1024/1024; let kernel_string = match kernel { Some(k) => format!("kernel: {}\n", k), @@ -22,8 +22,8 @@ fn get_sys() -> String { }; format!( - "{}{}MB free of {}MB memory", - kernel_string, free_memory, all_memory + "{}memory:{}MB available, {}MB in total", + kernel_string, available_memory, all_memory ) }