diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-06-12 13:55:12 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-06-12 13:55:12 +0200 |
commit | f7b63675697da08923c319ddee2c1d1a257dbe12 (patch) | |
tree | 6e8b67a3589e20888113d99622d2af1810ba915e /src/main/java | |
parent | 7c3c37c9c5d3222d051a383ddf2dc38636087a3f (diff) | |
download | skyhanni-f7b63675697da08923c319ddee2c1d1a257dbe12.tar.gz skyhanni-f7b63675697da08923c319ddee2c1d1a257dbe12.tar.bz2 skyhanni-f7b63675697da08923c319ddee2c1d1a257dbe12.zip |
Updating movement speed display 4 times per second
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/MovementSpeedDisplay.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/MovementSpeedDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/MovementSpeedDisplay.kt index fb2cff7fc..d6d73c3ce 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/MovementSpeedDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/MovementSpeedDisplay.kt @@ -16,7 +16,7 @@ class MovementSpeedDisplay { private var display = "" init { - fixedRateTimer(name = "skyhanni-movement-speed-display", period = 1_000, initialDelay = 1_000) { + fixedRateTimer(name = "skyhanni-movement-speed-display", period = 250, initialDelay = 1_000) { checkSpeed() } } @@ -31,7 +31,7 @@ class MovementSpeedDisplay { } lastLocation?.let { - val distance = it.distance(currentLocation) + val distance = it.distance(currentLocation) * 4 display = "Movement Speed: ${distance.round(2)}" lastLocation = currentLocation } |