openvidu-server: CDREventEnd constructor update

pull/375/head
pabloFuente 2019-06-24 15:16:05 +02:00
parent 9c4941de9a
commit 69d7230fa8
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ public class CDREventEnd extends CDREvent {
super(eventName, sessionId, timestamp);
}
public CDREventEnd(CDREventName eventName, String sessionId, Long startTime, EndReason reason) {
super(eventName, sessionId, System.currentTimeMillis());
public CDREventEnd(CDREventName eventName, String sessionId, Long startTime, EndReason reason, Long timestamp) {
super(eventName, sessionId, timestamp);
this.startTime = startTime;
this.duration = (int) ((this.timeStamp - this.startTime) / 1000);
this.reason = reason;