Projects STRLCPY Vault-8-Hive Commits 58314b5b
🤬
  • ■ ■ ■ ■ ■
    server/beacon.c
    skipped 134 lines
    135 135   DLX(4, printf("\t%32s: %-f\n\n", "Beacon Variance (%)", beaconInfo->percentVariance));
    136 136   
    137 137   DLX(4, printf("\nStarting beacon thread with initial beacon delay of %ld seconds\n", beaconInfo->initDelay / 1000));
    138  - Sleep(beaconInfo->initDelay); // Wait for initial delay
     138 + if (beaconInfo->percentVariance > 0)
     139 + Sleep(beaconInfo->initDelay + calc_jitter(beaconInfo->initDelay, beaconInfo->percentVariance)); // Wait for initial delay + jitter
    139 140   
    140 141   for (;;) { // Beacon Loop
    141 142   secondsUp = GetSystemUpTime(); // Get system uptime
    skipped 529 lines
Please wait...
Page is in error, reload to recover