theme(clean-detailed): adjust memory calculation

This commit is contained in:
Somoy Subandhu 2023-11-29 12:04:14 +02:00 committed by GitHub
parent 9737cf7ca3
commit bd87e7a14f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@
"foreground": "#ffffff",
"leading_diamond": "\ue0b2",
"style": "diamond",
"template": "\ue266 MEM: {{ round .PhysicalPercentUsed .Precision }}% | {{ (div ((sub .PhysicalTotalMemory .PhysicalFreeMemory)|float64) 1000000000.0) }}/{{ (div .PhysicalTotalMemory 1000000000.0) }}GB \ue266 ",
"template": "\ue266 MEM: {{ round .PhysicalPercentUsed .Precision }}% | {{ (div ((sub .PhysicalTotalMemory .PhysicalAvailableMemory)|float64) 1073741824.0) }}/{{ (div .PhysicalTotalMemory 1073741824.0) }}GB \ue266 ",
"trailing_diamond": "<transparent,#516BEB>\ue0b2</>",
"type": "sysinfo"
},