mirror of
				https://github.com/karl0ss/homepage.git
				synced 2025-11-04 08:20:58 +00:00 
			
		
		
		
	Show memory up to 1 decimal place
This commit is contained in:
		
							parent
							
								
									bc4d662b2d
								
							
						
					
					
						commit
						4c70bff952
					
				@ -52,7 +52,7 @@ export default function Memory({ expanded }) {
 | 
			
		||||
      <div className="flex flex-col ml-3 text-left min-w-[85px]">
 | 
			
		||||
        <span className="text-theme-800 dark:text-theme-200 text-xs flex flex-row justify-between">
 | 
			
		||||
          <div className="pl-0.5">
 | 
			
		||||
            {t("common.bytes", { value: data.memory.freeMemMb * 1024 * 1024, maximumFractionDigits: 0, binary: true })}
 | 
			
		||||
            {t("common.bytes", { value: data.memory.freeMemMb * 1024 * 1024, maximumFractionDigits: 1, binary: true })}
 | 
			
		||||
          </div>
 | 
			
		||||
          <div className="pr-1">{t("resources.free")}</div>
 | 
			
		||||
        </span>
 | 
			
		||||
@ -61,7 +61,7 @@ export default function Memory({ expanded }) {
 | 
			
		||||
            <div className="pl-0.5">
 | 
			
		||||
              {t("common.bytes", {
 | 
			
		||||
                value: data.memory.totalMemMb * 1024 * 1024,
 | 
			
		||||
                maximumFractionDigits: 0,
 | 
			
		||||
                maximumFractionDigits: 1,
 | 
			
		||||
                binary: true,
 | 
			
		||||
              })}
 | 
			
		||||
            </div>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user