Skip to content

Instantly share code, notes, and snippets.

@thesw4rm
Last active May 3, 2020 09:33
Show Gist options
  • Save thesw4rm/7aa96d950b7452ab94bc209413081e94 to your computer and use it in GitHub Desktop.
Save thesw4rm/7aa96d950b7452ab94bc209413081e94 to your computer and use it in GitHub Desktop.
if (under_load) {
last_under_load = ktime_get_coarse_boottime_ns();
} else if (last_under_load) {
under_load = !wg_birthdate_has_expired(last_under_load, 1);
if (!under_load)
last_under_load = 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment