(_entry)->now = time(NULL);\
if ((_entry)->now != (_entry)->last_complained) {\
(_entry)->last_complained = (_entry)->now;\
- if ((_entry)->repeated > 0) { \
+ if (((_entry)->repeated > 0) && (((_entry)->now - (_entry)->last_complained) == 1)) { \
_log(_fmt " - repeated %u time(s)", ##__VA_ARGS__, (_entry)->repeated); \
(_entry)->repeated = 0; \
} else { \
_log(_fmt, ##__VA_ARGS__); \
}\
- }\
+ } else { \
+ (_entry)->repeated++; \
+ } \
} else (_log(_fmt, ##__VA_ARGS__));\
} while (0)
(_entry)->now = time(NULL);\
if ((_entry)->now != (_entry)->last_complained) {\
(_entry)->last_complained = (_entry)->now;\
- if ((_entry)->repeated > 0) { \
+ if (((_entry)->repeated > 0) && (((_entry)->now - (_entry)->last_complained) == 1)) { \
ROPTIONAL(_l_request, _l_global, _fmt " - repeated %u time(s)", ##__VA_ARGS__, (_entry)->repeated); \
(_entry)->repeated = 0; \
} else { \
ROPTIONAL(_l_request, _l_global, _fmt, ##__VA_ARGS__); \
}\
- }\
+ } else { \
+ (_entry)->repeated++; \
+ } \
} else { \
ROPTIONAL(_l_request, _l_global, _fmt, ##__VA_ARGS__);\
} \