Skip to content

Commit

Permalink
fix(dbm-services): 忽略采集windows主机的空磁盘 TencentBlueKing#6800
Browse files Browse the repository at this point in the history
  • Loading branch information
ymakedaq committed Sep 10, 2024
1 parent c94e463 commit 3c08192
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 3c08192

Please sign in to comment.