mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-05-15 18:26:48 -04:00
fix: lastHeard 0 hour issue (#939)
This commit is contained in:
committed by
GitHub
parent
675c6a6b22
commit
ff36b21298
@@ -36,7 +36,7 @@ fun formatAgo(lastSeenUnix: Int): String {
|
||||
val diffMin = (currentTime - lastSeenUnix) / 60
|
||||
if (diffMin < 1)
|
||||
return "now"
|
||||
if (diffMin < 59)
|
||||
if (diffMin < 60)
|
||||
return diffMin.toString() + " min"
|
||||
if (diffMin < 2880)
|
||||
return (diffMin / 60).toString() + " h"
|
||||
|
||||
Reference in New Issue
Block a user