kopia lustrzana https://github.com/magicbug/Cloudlog
Merge pull request #2160 from abarrau/dev
Update Distances_model : change "round" to "ceil"pull/2165/head
commit
b048671c5e
|
|
@ -256,13 +256,13 @@ class Distances_model extends CI_Model
|
||||||
|
|
||||||
switch ($measurement_base) {
|
switch ($measurement_base) {
|
||||||
case 'M':
|
case 'M':
|
||||||
return round(6371*$ca/1.609344);
|
return ceil(6371*$ca/1.609344);
|
||||||
case 'K':
|
case 'K':
|
||||||
return round(6371*$ca);
|
return ceil(6371*$ca);
|
||||||
case 'N':
|
case 'N':
|
||||||
return round(6371*$ca/1.852);
|
return ceil(6371*$ca/1.852);
|
||||||
default:
|
default:
|
||||||
return round(6371*$ca);
|
return ceil(6371*$ca);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue