Skip to content

Commit f59865b

Browse files
committed
Update monitor_tools.inc.php (Centos distver)
1 parent 736f9ef commit f59865b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/lib/classes/monitor_tools.inc.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,23 +265,23 @@ function get_distname() {
265265
$distbaseid = 'fedora';
266266
} elseif(stristr($content, 'CentOS release 5')) {
267267
$distname = 'CentOS';
268-
$distver = 'Unknown';
268+
$distver = '5';
269269
$distid = 'centos53';
270270
$distbaseid = 'fedora';
271271
} elseif(stristr($content, 'CentOS Linux release 6')) {
272272
$distname = 'CentOS';
273-
$distver = 'Unknown';
273+
$distver = '6';
274274
$distid = 'centos53';
275275
$distbaseid = 'fedora';
276276
} elseif(stristr($content, 'CentOS Linux release 7.2')) {
277277
$distname = 'CentOS';
278-
$distver = 'Unknown';
278+
$distver = '7.2';
279279
$distid = 'centos70';
280280
$distconfid = 'centos72';
281281
$distbaseid = 'fedora';
282282
} elseif(stristr($content, 'CentOS Linux release 7')) {
283283
$distname = 'CentOS';
284-
$distver = 'Unknown';
284+
$distver = '7';
285285
$distid = 'centos70';
286286
$distbaseid = 'fedora';
287287
} else {

0 commit comments

Comments
 (0)