Lines 1-22
Link Here
|
1 |
--- vendor/github.com/shirou/gopsutil/disk/disk_freebsd.go.orig 2020-05-14 21:25:30 UTC |
|
|
2 |
+++ vendor/github.com/shirou/gopsutil/disk/disk_freebsd.go |
3 |
@@ -84,9 +84,9 @@ func PartitionsWithContext(ctx context.Context, all bo |
4 |
} |
5 |
|
6 |
d := PartitionStat{ |
7 |
- Device: common.IntToString(stat.Mntfromname[:]), |
8 |
- Mountpoint: common.IntToString(stat.Mntonname[:]), |
9 |
- Fstype: common.IntToString(stat.Fstypename[:]), |
10 |
+ Device: common.ByteToString(stat.Mntfromname[:]), |
11 |
+ Mountpoint: common.ByteToString(stat.Mntonname[:]), |
12 |
+ Fstype: common.ByteToString(stat.Fstypename[:]), |
13 |
Opts: opts, |
14 |
} |
15 |
if all == false { |
16 |
@@ -170,5 +170,5 @@ func parseDevstat(buf []byte) (Devstat, error) { |
17 |
} |
18 |
|
19 |
func getFsType(stat unix.Statfs_t) string { |
20 |
- return common.IntToString(stat.Fstypename[:]) |
21 |
+ return common.ByteToString(stat.Fstypename[:]) |
22 |
} |