Saltar al contenido principal

Información del sistema

Traducción Beta No Oficial

Esta página fue traducida por PageTurner AI (beta). No está respaldada oficialmente por el proyecto. ¿Encontraste un error? Reportar problema →

Qué hace

Muestra información del sistema.

Configuración de ejemplo

{
"type": "sysinfo",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#8f43f3",
"template": "  {{ round .PhysicalPercentUsed .Precision }}% ",
"options": {
"precision": 2
},
"style": "powerline"
}

Opciones

NameTypeDefaultDescription
Precisionint2The precision used for any float values

Plantilla (info)

plantilla predeterminada
 {{ round .PhysicalPercentUsed .Precision }}

Propiedades

NameTypeDescription
.PhysicalTotalMemoryintis the total of used physical memory
.PhysicalAvailableMemoryintis the total available physical memory (i.e. the amount immediately available to processes)
.PhysicalFreeMemoryintis the total of free physical memory (i.e. considers memory used by the system for any reason [e.g. caching] as occupied)
.PhysicalPercentUsedfloat64is the percentage of physical memory in usage
.SwapTotalMemoryintis the total of used swap memory
.SwapFreeMemoryintis the total of free swap memory
.SwapPercentUsedfloat64is the percentage of swap memory in usage
.Load1float64is the current load1 (can be empty on windows)
.Load5float64is the current load5 (can be empty on windows)
.Load15float64is the current load15 (can be empty on windows)
.Disks[]structan array of IOCountersStat object, you can use any property it has e.g. .Disks.disk0.IoTime