Skip to content

Commit

Permalink
refact: 3 sec every match
Browse files Browse the repository at this point in the history
  • Loading branch information
eiguike committed Mar 21, 2018
1 parent f5aec1c commit 7f15e0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
Expand Down Expand Up @@ -65,6 +66,7 @@ DeviceFingerprintThread (
case VERIFY_PROCESS:
while(1) {
gDevice->Verify(gDevice);
usleep(3000000);
if (gDevice->Outdated == 1) {
gDevice->Fingerprint->Update(gDevice->Fingerprint);
gDevice->Fingerprint->Load(gDevice->Fingerprint);
Expand Down

0 comments on commit 7f15e0a

Please sign in to comment.