Skip to content

Commit

Permalink
chore: linting with Stylua
Browse files Browse the repository at this point in the history
  • Loading branch information
TanvirOnGH authored and github-actions[bot] committed Aug 15, 2023
1 parent 7eeba9d commit 3fa0525
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions desktop/common/chart.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ function chart.new(style)
table.insert(data.values, 0)
end
local real_gap = style.bar.gap
+ (width - (barnum - 1) * (style.bar.width + style.bar.gap) - style.bar.width)
/ (barnum - 1)
+ (width - (barnum - 1) * (style.bar.width + style.bar.gap) - style.bar.width) / (barnum - 1)

cr:set_source(color(style.color))
for i = 0, barnum - 1 do
Expand Down
2 changes: 1 addition & 1 deletion system.lua
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ function system.proc_info(cpu_storage)
table.insert(proc_stat, m)
end

local mem = proc_stat[24] * mem_page_size -- Adjusted index for memory usage
local mem = proc_stat[24] * mem_page_size -- Adjusted index for memory usage

local proc_time = proc_stat[14] + proc_stat[15] -- Adjusted indices for proc_time
local pcpu = (proc_time - (proc_storage[pid] or 0)) / cpu_diff
Expand Down

0 comments on commit 3fa0525

Please sign in to comment.