diff options
-rw-r--r-- | module/bsnmp-regex.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/module/bsnmp-regex.c b/module/bsnmp-regex.c index c0aa252..2955681 100644 --- a/module/bsnmp-regex.c +++ b/module/bsnmp-regex.c @@ -187,17 +187,7 @@ strtrim (char* data) static uint64_t getcurrticks () { - struct timeval tp; - uint64_t t; - - /* Update tick count */ - if (gettimeofday (&tp, NULL) < 0) { - emsg ("couldn't get current time: %s", strerror (errno)); - return 0; - } - - t = (((uint64_t)tp.tv_sec) * 100) + (((uint64_t)tp.tv_usec) / 10000); - return t; + return get_ticks (); } #ifndef WITH_PCRE |