Skip to content

freebsd + arm returns large negative values #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jsirianni opened this issue Jul 2, 2018 · 1 comment
Closed

freebsd + arm returns large negative values #7

jsirianni opened this issue Jul 2, 2018 · 1 comment
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@jsirianni
Copy link
Member

ARM v7 (added print statements to: disk-usage_unix.go

} else {
        all  := int(fs.Blocks * uint64(fs.Bsize))
        free := int(fs.Bfree * uint64(fs.Bsize))
        used := int(all - free)
        percentage := int((float64(used) / float64(all)) * 100)

        fmt.Println(strconv.Itoa(all))
        fmt.Println(strconv.Itoa(free))
        fmt.Println(strconv.Itoa(used))
        fmt.Println(strconv.Itoa(percentage))
./disk-usage-arm.bin -t 0
-1221693440
-1963544576
741851136
-60
Disk usage healthy: /
@jsirianni jsirianni added the bug Something isn't working label Jul 2, 2018
@jsirianni jsirianni self-assigned this Jul 2, 2018
@jsirianni jsirianni modified the milestone: 3.0.0 Feb 13, 2021
@jsirianni jsirianni added the help wanted Extra attention is needed label Feb 16, 2021
@jsirianni
Copy link
Member Author

Not sure if this is still a problem. I have access to some ARM hardware but it may be outdated (old raspberry pie and Netgate hardware).

@jsirianni jsirianni modified the milestone: 3.0.1 Feb 16, 2021
@observIQ observIQ deleted a comment from Shakattack76 Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant