diff --git a/config.lua b/config.lua
index 5e08cb6..6598ea9 100644
--- a/config.lua
+++ b/config.lua
@@ -57,12 +57,12 @@ LCD4WoW.config = {
["layout_histogram"] = {
["layer2"] = {
[1] = {
- [1] = "widget_mem_histogram"
+ [1] = "widget_cpu_histogram"
},
},
["layer1"] = {
[3] = {
- [1] = "widget_mem_perc"
+ [1] = "widget_cpu_perc"
}
},
["transition"] = 2,
@@ -128,6 +128,7 @@ LCD4WoW.config = {
["widget_mem"] = {
type = "text",
value = [[
+do return random(100) .. "%" end
mem = GetMemUsage("StarTip")
if mem then
return memshort(tonumber(format("%.2f", mem)))
@@ -140,6 +141,7 @@ end
["widget_mem_perc"] = {
type = "text",
value = [[
+do return random(100) .. "%" end
mem, percent, memdiff, totalMem, totaldiff = GetMemUsage("StarTip")
if mem then
if totaldiff == 0 then totaldiff = 1 end
@@ -156,6 +158,7 @@ end
["widget_mem_bar"] = {
type = "bar",
expression = [[
+do return random(100) end
mem, percent, memdiff, totalMem, totaldiff = GetMemUsage("StarTip")
if mem then
if totaldiff == 0 then return 0 end
@@ -169,6 +172,7 @@ end
["widget_mem_histogram"] = {
type = "histogram",
expression = [[
+do return random(100) end
mem, percent, memdiff, totalMem, totaldiff = GetMemUsage("StarTip")
if mem then
if totaldiff == 0 then return 0 end
@@ -190,6 +194,7 @@ end
["widget_cpu"] = {
type = "text",
value = [[
+do return timeshort(random(10000)) end
cpu = GetCPUUsage("StarTip")
if cpu then
return timeshort(cpu)
@@ -202,6 +207,7 @@ end
["widget_cpu_bar"] = {
type = "bar",
expression = [[
+do return random(100) end
cpu, percent, cpudiff, totalCPU, totaldiff = GetCPUUsage("StarTip")
if cpu then
if totaldiff == 0 then return 0 end
@@ -215,6 +221,7 @@ end
["widget_cpu_histogram"] = {
type = "histogram",
expression = [[
+do return random(100) end
cpu, percent, cpudiff, totalCPU, totaldiff = GetCPUUsage("StarTip")
if cpu then
if totaldiff == 0 then return 0 end
@@ -226,6 +233,23 @@ end
width = 30,
height = 6
},
+ ["widget_cpu_perc"] = {
+ type = "text",
+ value = [[
+do return format("------%d%%-------", random(100)) end
+cpu, percent,cpudiff, totalCpu, totaldiff = GetMemUsage("StarTip")
+if cpu then
+ if totaldiff == 0 then totaldiff = 1 end
+ return '--------' .. format("%.2f", cpudiff / totaldiff * 100) .. "%" .. "-------"
+end
+]],
+ align = ALIGN_PINGPONG,
+ direction = SCROLL_RIGHT,
+ cols = 30,
+ update = 1000,
+ speed = 100,
+ dontRtrim = true
+ },
["widget_icon_blob"] = {
["bitmap"] = {
["row1"] = ".....|.....|.....",