mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: CDREventEnd constructor update
parent
9c4941de9a
commit
69d7230fa8
|
@ -31,8 +31,8 @@ public class CDREventEnd extends CDREvent {
|
||||||
super(eventName, sessionId, timestamp);
|
super(eventName, sessionId, timestamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
public CDREventEnd(CDREventName eventName, String sessionId, Long startTime, EndReason reason) {
|
public CDREventEnd(CDREventName eventName, String sessionId, Long startTime, EndReason reason, Long timestamp) {
|
||||||
super(eventName, sessionId, System.currentTimeMillis());
|
super(eventName, sessionId, timestamp);
|
||||||
this.startTime = startTime;
|
this.startTime = startTime;
|
||||||
this.duration = (int) ((this.timeStamp - this.startTime) / 1000);
|
this.duration = (int) ((this.timeStamp - this.startTime) / 1000);
|
||||||
this.reason = reason;
|
this.reason = reason;
|
||||||
|
|
Loading…
Reference in New Issue