Fixed development branch check

This commit is contained in:
WaLLy3K 2017-07-19 12:26:00 +10:00 committed by GitHub
parent f2a3b557c8
commit 49aee8b931
1 changed files with 2 additions and 1 deletions

View File

@ -184,7 +184,8 @@ $wlOutput = (isset($wlInfo) && $wlInfo !== "recentwl") ? "<a href='http://$wlInf
$phVersion = exec("cd /etc/.pihole/ && git describe --long --tags");
// Print $execTime on development branches
if (substr_count("-", $phVersion) != "1")
// Marginally faster than "git rev-parse --abbrev-ref HEAD"
if (explode("-", $phVersion)[1] != "0")
$execTime = microtime(true)-$_SERVER["REQUEST_TIME_FLOAT"];
?>
<!DOCTYPE html>