blob: 99ec788475726acdc04c3762a3b46c1f407d6c0e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  | 
--- spool.c	2013-06-03 14:03:15.000000000 +0000
+++ spool.c.8	2014-05-17 18:14:45.000000000 +0000
@@ -36,6 +36,7 @@
 
 #include <sys/file.h>
 #include <sys/stat.h>
+#include <sys/time.h>
 
 #include <ctype.h>
 #include <dirent.h>
@@ -415,7 +416,7 @@
 		return (0);
 
 	/* Did the flush file get touched within the last period seconds? */
-	if (st.st_mtim.tv_sec + period >= now.tv_sec)
+	if (st.st_mtime + (int)period >= now.tv_sec)
 		return (1);
 	else
 		return (0);
  
  |