diff --git a/module/metric/zen.php b/module/metric/zen.php index 798f69771c..a3aff20e3c 100644 --- a/module/metric/zen.php +++ b/module/metric/zen.php @@ -409,13 +409,18 @@ class metricZen extends metric return $header; } + /** + * 获取度量数据表的宽度。 + * Get width of result table in view. + * + * @param array $headers + * @access protected + * @return int + */ protected function getViewTableWidth($headers) { $width = 0; - foreach($headers as $header) - { - $width += isset($header['width']) ? $header['width'] : 160; - } + foreach($headers as $header) $width += isset($header['width']) ? $header['width'] : 160; return $width; }