mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-09-12 06:48:50 +02:00
Fixed "Last Seen" displaying Jan 1 1970 XX:59 for new registers
This commit is contained in:
parent
723e8f7391
commit
8de5012ae5
@ -177,8 +177,7 @@ public class PlayerProfile implements OfflinePlayer {
|
||||
}
|
||||
|
||||
public long getLastSeen(Stream<Session> s) {
|
||||
OptionalLong max = s.mapToLong(Session::getSessionEnd)
|
||||
.max();
|
||||
OptionalLong max = s.mapToLong(session -> Math.max(session.getSessionStart(), session.getSessionEnd())).max();
|
||||
if (max.isPresent()) {
|
||||
return max.getAsLong();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user