mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 09:13:08 +00:00
Merge pull request #3291 from chenglch/conserver
Fix the calculation error for conserver version number
This commit is contained in:
commit
8b913ed12c
@ -638,7 +638,7 @@ sub calc_conserver_version
|
||||
{
|
||||
my $ver_str = shift;
|
||||
my @vers = split(/\./, $ver_str);
|
||||
return ord($vers[2]) + ord($vers[1]) * 10000 + ord($vers[0]) * 100000000;
|
||||
return int($vers[2]) + int($vers[1]) * 10000 + int($vers[0]) * 100000000;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user