Add support for RC version (#19)

This commit is contained in:
Hypolite Petovan 2018-12-19 04:09:23 -05:00
commit d33fb62e35
6 changed files with 16 additions and 8 deletions

View file

@ -365,8 +365,10 @@ class Server
$this->simplecache->set('dev_version', $dev_version);
}
if ($version == $dev_version) {
$max_health = 95; //Develop can be unstable
$rc_version = str_replace('-dev', '-rc', $dev_version);
if ($version == $dev_version || $version == $rc_version) {
$max_health = 95; //Develop/RC can be unstable
} elseif ($version !== $stable_version) {
$delta = min($delta, 0) - 10; // Losing score as time passes if node isn't updated
}