Skip to content

Commit d4a1cf4

Browse files
Replaced incorrect quotation characters (#205)
1 parent ad85f4d commit d4a1cf4

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

windows/server_stats.ps1

+13-13
Original file line numberDiff line numberDiff line change
@@ -114,21 +114,21 @@ $ServerStats = {
114114
# Get Information on current running processes
115115
# IncludeUserName means we need admin priveleges
116116
$process_stats = Get-Process -IncludeUserName |
117-
Select-Object -Property @{Name = user; Expression = { $_.UserName } },
118-
@{Name = name; Expression = { $_.ProcessName } },
119-
@{Name = path; Expression = { $_.Path } },
120-
@{Name = pid; Expression = { $_.Id } },
121-
@{Name = memory_used_mb; Expression = $memory_used_mb },
122-
@{Name = max_memory_used_mb; Expression = $max_memory_used_mb },
123-
@{Name = total_alive_time; Expression = $process_alive_time }
117+
Select-Object -Property @{Name = 'user'; Expression = { $_.UserName } },
118+
@{Name = 'name'; Expression = { $_.ProcessName } },
119+
@{Name = 'path'; Expression = { $_.Path } },
120+
@{Name = 'pid'; Expression = { $_.Id } },
121+
@{Name = 'memory_used_mb'; Expression = $memory_used_mb },
122+
@{Name = 'max_memory_used_mb'; Expression = $max_memory_used_mb },
123+
@{Name = 'total_alive_time'; Expression = $process_alive_time }
124124
} else {
125125
$process_stats = Get-Process |
126-
Select-Object -Property @{Name = name; Expression = { $_.ProcessName } },
127-
@{Name = path; Expression = { $_.Path } },
128-
@{Name = pid; Expression = { $_.Id } },
129-
@{Name = memory_used_mb; Expression = $memory_used_mb },
130-
@{Name = max_memory_used_mb; Expression = $max_memory_used_mb },
131-
@{Name = total_alive_time; Expression = $process_alive_time }
126+
Select-Object -Property @{Name = 'name'; Expression = { $_.ProcessName } },
127+
@{Name = 'path'; Expression = { $_.Path } },
128+
@{Name = 'pid'; Expression = { $_.Id } },
129+
@{Name = 'memory_used_mb'; Expression = $memory_used_mb },
130+
@{Name = 'max_memory_used_mb'; Expression = $max_memory_used_mb },
131+
@{Name = 'total_alive_time'; Expression = $process_alive_time }
132132
}
133133
}
134134

0 commit comments

Comments
 (0)