mirror of
				https://github.com/optim-enterprises-bv/control-pane.git
				synced 2025-10-31 01:47:52 +00:00 
			
		
		
		
	add clonos=1 args
This commit is contained in:
		| @@ -180,8 +180,8 @@ class Config | |||||||
| 	{ | 	{ | ||||||
| 		$array=array(); | 		$array=array(); | ||||||
| 		$array1=array(); | 		$array1=array(); | ||||||
| 		// $res=ClonOS::cbsd_cmd('get_bhyve_profiles src=vm'); for obtain/library | 		// $res=ClonOS::cbsd_cmd('get_bhyve_profiles src=vm clonos=1'); for obtain/library | ||||||
| 		$res=ClonOS::cbsd_cmd('get_bhyve_profiles src=vm'); | 		$res=ClonOS::cbsd_cmd('get_bhyve_profiles src=vm clonos=1'); | ||||||
| 		if($res['retval']==0) | 		if($res['retval']==0) | ||||||
| 		{ | 		{ | ||||||
| 			$this->os_types=$this->create_bhyve_profiles($res); | 			$this->os_types=$this->create_bhyve_profiles($res); | ||||||
|   | |||||||
| @@ -55,6 +55,6 @@ if($res_array['average']>0) | |||||||
| 	$res_array['average']=$this->GhzConvert($res_array['average']/($res_array['num-nodes']?:1)); | 	$res_array['average']=$this->GhzConvert($res_array['average']/($res_array['num-nodes']?:1)); | ||||||
| } | } | ||||||
|  |  | ||||||
| $res_array['sum-ram']=$this->fileSizeConvert($res_array['sum-ram']*1024*1024,1024,true); | $res_array['sum-ram']=$this->fileSizeConvert($res_array['sum-ram']/1024/1024/1024,true); | ||||||
|  |  | ||||||
| echo json_encode($res_array); | echo json_encode($res_array); | ||||||
		Reference in New Issue
	
	Block a user
	 olevole
					olevole