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

[FIX] managed log 저장 로직 수정 #159

Open
1 task
inferior3x opened this issue Jan 14, 2025 · 0 comments
Open
1 task

[FIX] managed log 저장 로직 수정 #159

inferior3x opened this issue Jan 14, 2025 · 0 comments

Comments

@inferior3x
Copy link
Collaborator

Description

맥이 a, b인 기기 2개가 있다.

현재 저장 로직에 따르면,

  • 1일 날 a가 아이피 1을 할당 받을경우
    [아이피 1, 맥 a, created 1일, updated 1일]

  • 2일 날 a는 와이파이에 접속했으나 아이피가 변경되지 않은경우
    [아이피 1, 맥 a, c 1일, u 2일]

  • 3일 날 b가 와이파이에 접속하여 아이피 1을 뺏은경우
    [아이피 1, 맥 a, c 1일, u 2일]
    [아이피 1, 맥 b, c 3일, u 3일]

  • 4일 날 a가 아이피 1을 탈환한 경우
    [아이피 1, 맥 a, c 1일, u 4일]
    [아이피 1, 맥 b, c 3일, u 3일]

위와 같이 맥 a가 1일부터 4일까지 아이피를 할당 받았다고 저장되었는데 맥 b도 3일에 아이피를 할당 받았다는 모순이 있다.

사실 논리적으론 마지막엔 아래와 같아야 된다.
[아이피 1, 맥 a, c 4일, u 4일]
[아이피 1, 맥 b, c 3일, u 3일]
따라서 저장 로직을 수정한다.

To Do

  • 작업
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