From 3c08192a5136c8bb1bb022e7370df078c8e8ab57 Mon Sep 17 00:00:00 2001 From: make123 Date: Tue, 10 Sep 2024 11:48:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(dbm-services):=20=E5=BF=BD=E7=95=A5?= =?UTF-8?q?=E9=87=87=E9=9B=86windows=E4=B8=BB=E6=9C=BA=E7=9A=84=E7=A9=BA?= =?UTF-8?q?=E7=A3=81=E7=9B=98=20#6800?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/db-resource/internal/svr/bk/get_win_disk.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbm-services/common/db-resource/internal/svr/bk/get_win_disk.ps1 b/dbm-services/common/db-resource/internal/svr/bk/get_win_disk.ps1 index 6fbdcea69f..d4cafdbafc 100644 --- a/dbm-services/common/db-resource/internal/svr/bk/get_win_disk.ps1 +++ b/dbm-services/common/db-resource/internal/svr/bk/get_win_disk.ps1 @@ -1,4 +1,4 @@ -$diskInfo = Get-WmiObject -Class Win32_LogicalDisk -Filter "DriveType=3" | ForEach-Object { +$diskInfo = Get-WmiObject -Class Win32_LogicalDisk -Filter "DriveType=3" | Where-Object { $_.FreeSpace -lt $_.Size } | ForEach-Object { [PSCustomObject]@{ DriveLetter = $_.DeviceID TotalSize = $_.Size