]> arthur.barton.de Git - netdata.git/blobdiff - src/plugin_nfacct.c
`replace `time(NULL)` calls by `now_realtime_sec()`
[netdata.git] / src / plugin_nfacct.c
index 7843161d32bf86e3bce565cf742e2dd3bfbfce97..b258005ba05440ec70c12e49a81a7d82a8e2155a 100644 (file)
@@ -70,7 +70,7 @@ void *nfacct_main(void *ptr) {
     struct nlmsghdr *nlh = NULL;
     unsigned int seq = 0, portid = 0;
 
-    seq = time(NULL) - 1;
+    seq = now_realtime_sec() - 1;
 
     nl  = mnl_socket_open(NETLINK_NETFILTER);
     if(!nl) {