Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unused data & request sets #6

Open
3 tasks
apttx opened this issue Jan 17, 2023 · 1 comment
Open
3 tasks

unused data & request sets #6

apttx opened this issue Jan 17, 2023 · 1 comment
Assignees

Comments

@apttx
Copy link
Contributor

apttx commented Jan 17, 2023

  • remember which files were requested in recording mode
    • if reliable: remember the timestamp & create a set of requests based on how close they were together.
  • before sigint? output the files that weren't used to the console
@apttx apttx self-assigned this Jan 17, 2023
@apttx
Copy link
Contributor Author

apttx commented Jan 17, 2023

const sensitivity = 3
timestamps.map(timestamp, index, values) => {
  const previousTimestamp = values[index - 1]

  if(previousTimestamp === undefined) {
    return 0
  }
  
  const result = Math.pow(timestamp - previousTimestamp, sensitivity) / previousTimestamp

  return result
})

seems sensible. split at values above 1 (~30s between)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant