mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Fixed development branch check
This commit is contained in:
parent
f2a3b557c8
commit
49aee8b931
1 changed files with 2 additions and 1 deletions
|
@ -184,7 +184,8 @@ $wlOutput = (isset($wlInfo) && $wlInfo !== "recentwl") ? "<a href='http://$wlInf
|
||||||
$phVersion = exec("cd /etc/.pihole/ && git describe --long --tags");
|
$phVersion = exec("cd /etc/.pihole/ && git describe --long --tags");
|
||||||
|
|
||||||
// Print $execTime on development branches
|
// 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"];
|
$execTime = microtime(true)-$_SERVER["REQUEST_TIME_FLOAT"];
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|
Loading…
Reference in a new issue