X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FOutputPage.php;h=1083687fb240657a1ba56c01e0d65b4dd791ee7b;hb=a0c9fb59a934a3e7d9f31f249ab0b2b923f49db7;hp=77dbde717568569045c64141c9c9b375bf28dbae;hpb=e14ac4bcb8136332694ce417213b2a6099c44c6f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 77dbde7175..1083687fb2 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -2547,6 +2547,7 @@ class OutputPage extends ContextSource { public function showLagWarning( $lag ) { $config = $this->getConfig(); if ( $lag >= $config->get( 'SlaveLagWarning' ) ) { + $lag = floor( $lag ); // floor to avoid nano seconds to display $message = $lag < $config->get( 'SlaveLagCritical' ) ? 'lag-warn-normal' : 'lag-warn-high';