mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-31 06:56:52 +01:00 
			
		
		
		
	fix: Wrong conversion if decimal prefix selected (#1626)
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									0104a08ba4
								
							
						
					
					
						commit
						76451fa0ad
					
				| @ -67,7 +67,7 @@ class ServerOverview extends StatsOverviewWidget | ||||
|         } | ||||
| 
 | ||||
|         $latestMemoryUsed = collect(cache()->get("servers.{$this->server->id}.memory_bytes"))->last(default: 0); | ||||
|         $totalMemory = $this->server->memory * 2 ** 20; | ||||
|         $totalMemory = $this->server->memory * (config('panel.use_binary_prefix') ? 1024 * 1024 : 1000 * 1000); | ||||
| 
 | ||||
|         $used = convert_bytes_to_readable($latestMemoryUsed); | ||||
|         $total = convert_bytes_to_readable($totalMemory); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 SaurFort
						SaurFort