Skip to content

Commit

Permalink
fix disk info
Browse files Browse the repository at this point in the history
  • Loading branch information
saeedvaziry committed Apr 13, 2024
1 parent 16f7e7c commit 3ee2d81
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions pkg/disk/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package disk

import (
"fmt"
"os"
"syscall"
)

Expand All @@ -13,15 +12,8 @@ type DiskInfo struct {
}

func GetDiskInfo() DiskInfo {
// Get the current working directory
dir, err := os.Getwd()
if err != nil {
fmt.Println("Error:", err)
panic(err)
}

// Get disk usage of the current working directory
info, err := diskUsage(dir)
info, err := diskUsage("/")
if err != nil {
fmt.Println("Error:", err)
panic(err)
Expand Down

0 comments on commit 3ee2d81

Please sign in to comment.