pknock: use more efficient method to obtain seconds

This commit is contained in:
Jan Engelhardt
2009-10-03 18:09:42 +02:00
parent 0d8ae29a60
commit 654862af21

View File

@@ -153,8 +153,7 @@ pknock_hash(const void *key, uint32_t len, uint32_t initval, uint32_t max)
*/
static inline unsigned int get_epoch_minute(void)
{
struct timespec t = CURRENT_TIME;
return t.tv_sec / 60;
return get_seconds() / 60;
}
/**