v0.1.8 tests converted to standard library from testify
This commit is contained in:
+4
-2
@@ -152,7 +152,8 @@ func (l *Logger) getDiskFreeSpace(path string) (int64, error) {
|
||||
if err := syscall.Statfs(path, &stat); err != nil {
|
||||
return 0, fmtErrorf("failed to get disk stats for '%s': %w", path, err)
|
||||
}
|
||||
availableBytes := int64(stat.Bavail) * stat.Bsize
|
||||
// Explicit cast to int64 to satisfy both Linux and FreebSD
|
||||
availableBytes := int64(stat.Bavail) * int64(stat.Bsize)
|
||||
return availableBytes, nil
|
||||
}
|
||||
|
||||
@@ -490,4 +491,5 @@ func (l *Logger) getLogFileCount(dir, ext string) (int, error) {
|
||||
}
|
||||
}
|
||||
return count, nil
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user