jrgp / linfo

Linfo PHP Server Health Status
MIT License
361 stars 73 forks source link

Division by zero in Linux.php line 1651 #36

Closed TechKat closed 8 years ago

TechKat commented 8 years ago

I have currently pulled in the dev-master build, as I will only really be using it for my admin panel.

I recently just updated to PHP7. Any recommendations?

TechKat commented 8 years ago

Update: I removed Gummibear's Laravel version and used the original copy.

I set cpu_usage to false, and that got rid of the problem. This appears to be a determineCpuUsage problem?

jrgp commented 8 years ago

You're right. I'm not checking if array_sum($ret) is > 0, which is what led to this. Can you tell me a little bit about the box you're running Linfo on? Is it a docker container/VM/etc/etc.

TechKat commented 8 years ago

I am running Ubuntu 16.04 (xenial), on a VPS managed with VMWare.

jrgp commented 8 years ago

Should be fixed per gummibeer's commit.