-
Notifications
You must be signed in to change notification settings - Fork 150
Usage meter chooses incorrect level #1
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
Comments
Up ';
// YES WE ARE!
// ========================================================================================================================================
// Post Data
// ========================================================================================================================================
echo json_encode($post); // Time to show the world what we are made of!
// ========================================================================================================================================
// Functions
// ========================================================================================================================================
function levels($perc, $dl, $wl){
// make nice green bars
if($perc < 30) {
$width = 30;
} else {
$width = $perc;
}
if($perc > $wl) {
$return = '' . $perc . '%';
}
elseif($perc < $wl) {
$return = ' ' . $perc . '% ' . $perc . '% |
@Munroenet it would be nice to put this in a gist or in a |
https://github.com/Munroenet/ServerStatus/blob/Munzy/uptime.php Its right there, was trying to find the way for an easy submit into the code repo however, and couldn't find it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage meters don't pick correct level when usage is 4%-9%
The text was updated successfully, but these errors were encountered: