Skip to content

Commit

Permalink
Merge pull request tmux-plugins#6 from andruet/master
Browse files Browse the repository at this point in the history
add status-interval in get_velocity
  • Loading branch information
beeryardtech authored Dec 3, 2018
2 parents 536d2bd + a3b0c9e commit 58abb61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ get_velocity()
local THOUSAND=1024
local MILLION=1048576

local vel=$(( new_value - old_value ))
local interval=$(get_tmux_option 'status-interval' 5)
local vel=$(( ( new_value - old_value ) / interval ))
local vel_kb=$(( vel / THOUSAND ))
local vel_mb=$(( vel / MILLION ))

Expand Down

0 comments on commit 58abb61

Please sign in to comment.