cleaning up
This commit is contained in:
parent
73ee84a1fb
commit
117f7fa4b5
2 changed files with 11 additions and 9 deletions
|
|
@ -390,8 +390,7 @@ export class ClockCollator {
|
|||
this.timeAtPrevOffsetSample = null;
|
||||
};
|
||||
}
|
||||
|
||||
calculateTimestamp(currentTime, targetTime) {
|
||||
calculateOffset(currentTime) {
|
||||
const targetClockTime = this.getTargetClockTime();
|
||||
const diffBetweenTimeSamples = targetClockTime - this.timeAtPrevOffsetSample;
|
||||
const newOffsetTime = targetClockTime - currentTime;
|
||||
|
|
@ -419,8 +418,11 @@ export class ClockCollator {
|
|||
}
|
||||
}
|
||||
|
||||
const timestamp = this.offsetTime + targetTime;
|
||||
return timestamp;
|
||||
return this.offsetTime;
|
||||
}
|
||||
|
||||
calculateTimestamp(currentTime, targetTime) {
|
||||
return this.calculateOffset(currentTime) + targetTime
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue