Quantcast

Revert CPu script

Scott Sibley [08-19-10 - 04:53]
Revert CPu script
Filename
Modules/Text.lua
diff --git a/Modules/Text.lua b/Modules/Text.lua
index 9da6081..ac0189a 100644
--- a/Modules/Text.lua
+++ b/Modules/Text.lua
@@ -346,8 +346,9 @@ end
 		desc = "Note that you must turn on CPU profiling",
 		left = 'return "CPU Usage:"',
 		right = [[
-local cpu, percent = GetCPUUsage("StarTip")
+local cpu, percent, cpudiff, totalCPU, totaldiff = GetCPUUsage("StarTip")
 if cpu then
+    percent = cpudiff / totaldiff * 100
     return format("%.2f", cpu) .. " (" .. format("%.2f", percent)  .. "%)"
 end
 ]],