Skip to content

Commit

Permalink
Time diff fix
Browse files Browse the repository at this point in the history
Oops the time diff checker logic was incorrect for some time
  • Loading branch information
indianpoptart committed May 2, 2024
1 parent c53db46 commit f47d9ca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions RadioControl/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ dependencies {
implementation 'com.github.bmelnychuk:atv:1.2.9'
implementation 'com.github.gabrielemariotti.changeloglib:changelog:2.1.0'
implementation 'com.gordonwong:material-sheet-fab:1.2.1'
implementation 'com.mikepenz:aboutlibraries-core:10.10.0'
implementation 'com.mikepenz:aboutlibraries:10.10.0'
implementation 'com.mikepenz:aboutlibraries-compose:10.10.0'
implementation 'com.mikepenz:aboutlibraries-core:11.1.3'
implementation 'com.mikepenz:aboutlibraries:11.1.3'
implementation 'com.mikepenz:aboutlibraries-compose:11.1.3'
implementation 'com.mikepenz:fastadapter:5.7.0'
implementation 'com.mikepenz:fastadapter-extensions-expandable:5.7.0'
//implementation 'com.mikepenz:google-material-typeface:3.0.1.3.original@aar'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,7 @@ class MainActivity : AppCompatActivity(), KinAppManager.KinAppListener, Coroutin
if (reachable) {
when {
timeDifference <= 50 -> Snackbar.make(clayout, "Excellent Latency: $timeDifference ms", Snackbar.LENGTH_LONG).show()
51.0 <= timeDifference && timeDifference <= 100.0 -> Snackbar.make(clayout, "Average Latency: $timeDifference ms", Snackbar.LENGTH_LONG).show()
51.0 >= timeDifference && timeDifference <= 100.0 -> Snackbar.make(clayout, "Average Latency: $timeDifference ms", Snackbar.LENGTH_LONG).show()
101.0 <= timeDifference && timeDifference <= 200.0 -> Snackbar.make(clayout, "Poor Latency: $timeDifference ms", Snackbar.LENGTH_LONG).show()
timeDifference >= 201 -> Snackbar.make(clayout, "Very Poor Latency. VOIP and online gaming may suffer: $timeDifference ms", Snackbar.LENGTH_LONG).show()
}
Expand Down
4 changes: 2 additions & 2 deletions RadioControl/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sun Jan 28 20:57:15 EST 2024
#Thu May 02 12:48:44 COT 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit f47d9ca

Please sign in to comment.