Skip to content

Commit

Permalink
fixing totals
Browse files Browse the repository at this point in the history
  • Loading branch information
gngrninja committed Oct 7, 2020
1 parent e5fe440 commit e5c20ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PSFolderSize/Functions/Public/Get-FolderSize.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,9 @@ function Get-FolderSize {

$folderList | ForEach-Object {

if ($_.'Size(Bytes)' -gt 0) {
if ($_.SizeBytes -gt 0) {

$grandTotal += $_.'Size(Bytes)'
$grandTotal += $_.SizeBytes

}
}
Expand Down

0 comments on commit e5c20ea

Please sign in to comment.