🚀 add stl/log.nas and stl/process_bar.nas

This commit is contained in:
ValKmjolnir
2022-06-15 00:36:49 +08:00
parent 6b20e0f167
commit ef3afa14b9
13 changed files with 278 additions and 11 deletions
+1 -1
View File
@@ -45,6 +45,6 @@ func(){
println("CPU occupation(%) : ",cpu_occ>90?"\e[91m":"\e[32m",cpu_occ,"\e[0m");
println("Memory total(GB) : \e[36m",mem.MemTotal/1024/1024,"\e[0m");
println("Memory free(GB) : \e[36m",mem.MemFree/1024/1024,"\e[0m");
println("Memory occupation(%): ",mem_occ>30?"\e[91m":"\e[32m",mem_occ,"\e[0m");
println("Memory occupation(%): ",mem_occ>60?"\e[91m":"\e[32m",mem_occ,"\e[0m");
}
}();