From cf93196a8abda9795303ee8a0bc7be64eefef2f7 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 17 Nov 2004 05:45:14 +0000 Subject: [PATCH] convert seconds to nanoseconds --- include/sigar_private.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/sigar_private.h b/include/sigar_private.h index c750b3b3..295d86ec 100644 --- a/include/sigar_private.h +++ b/include/sigar_private.h @@ -60,6 +60,9 @@ #define strnEQ(s1, s2, n) (strncmp(s1, s2, n) == 0) #endif +#define SIGAR_SEC2NANO(s) \ + ((sigar_uint64_t)(s) * (sigar_uint64_t)1000000000) + #define SIGAR_LAST_PROC_EXPIRE 2 #define SIGAR_FS_MAX 10