diff options
| author | delta <darkussdelta@gmail.com> | 2023-05-12 16:18:24 +0200 |
|---|---|---|
| committer | delta <darkussdelta@gmail.com> | 2023-05-12 16:18:24 +0200 |
| commit | f5612f081db0dc69f5c0ebc69e67fa3b098a9ad9 (patch) | |
| tree | 7a04027efe5fede7f08688a9524c5dbe6628635b /.config/awesome/quarrel/math.lua | |
| parent | ea1bdf6585caed2c0ba8669ca5c3b3b92232281a (diff) | |
restructure services, add get_essid to quarrel.native and other wip work
Diffstat (limited to '.config/awesome/quarrel/math.lua')
| -rw-r--r-- | .config/awesome/quarrel/math.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.config/awesome/quarrel/math.lua b/.config/awesome/quarrel/math.lua index bc1f53b..886ce13 100644 --- a/.config/awesome/quarrel/math.lua +++ b/.config/awesome/quarrel/math.lua @@ -1,6 +1,9 @@ local qmath = {} function qmath.step_value(value, steps) + if value > steps[#steps - 1][1] then + return steps[#steps - 1][2] + end for i, step in ipairs(steps) do if step[1] <= value and value <= steps[i + 1][1] then return step[2] |
