Исправлено отображение ttl больше 127

This commit is contained in:
serega6531
2021-01-10 05:33:53 +03:00
parent ee7cc00914
commit ba63899af4
5 changed files with 9 additions and 8 deletions

View File

@@ -94,7 +94,7 @@ public class StreamService {
final Stream stream = new Stream();
stream.setProtocol(unfinishedStream.getProtocol());
stream.setTtl(firstIncoming.isPresent() ? firstIncoming.get().getTtl() : 0);
stream.setTtl(firstIncoming.map(Packet::getTtl).orElse(0));
stream.setStartTimestamp(packets.get(0).getTimestamp());
stream.setEndTimestamp(packets.get(packets.size() - 1).getTimestamp());
stream.setService(service.getPort());