mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-06-20 19:28:24 -07:00
fix to check diskspace
This commit is contained in:
@@ -203,8 +203,9 @@ async fn wait_for_telnet(admin_ip: &str) -> Result<()> {
|
||||
}
|
||||
|
||||
async fn check_disk_space(addr: SocketAddr, binary_size: usize) -> Result<()> {
|
||||
// Use /data/rayhunter to resolve through symlink (may point to /cache/rayhunter-data)
|
||||
let df_output =
|
||||
telnet_send_command_with_output(addr, "df /data | tail -1 | awk '{print $4}'", false)
|
||||
telnet_send_command_with_output(addr, "df /data/rayhunter | tail -1 | awk '{print $4}'", false)
|
||||
.await?;
|
||||
let available_kb: usize = df_output
|
||||
.lines()
|
||||
|
||||
Reference in New Issue
Block a user