mirror of
https://github.com/clearlinux/tallow.git
synced 2026-06-16 01:15:48 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5dfb9821e3 | |||
| 348fd7d744 |
+1
-1
@@ -2,7 +2,7 @@
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ([2.64])
|
||||
AC_INIT([tallow], [18], [auke-jan.h.kok@intel.com])
|
||||
AC_INIT([tallow], [19], [auke-jan.h.kok@intel.com])
|
||||
AM_INIT_AUTOMAKE([foreign -Wall -Werror -Wno-portability silent-rules subdir-objects color-tests
|
||||
no-dist-gzip dist-xz])
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
|
||||
+5
-3
@@ -287,7 +287,7 @@ int main(void)
|
||||
int r;
|
||||
FILE *f;
|
||||
int timeout = 60;
|
||||
long long int last_timestamp = 0;
|
||||
long long unsigned int last_timestamp = 0;
|
||||
|
||||
json_load_patterns();
|
||||
|
||||
@@ -396,11 +396,13 @@ int main(void)
|
||||
* this happens when the journal rotates - we get replayed events
|
||||
*/
|
||||
if (sd_journal_get_data(j, "_SOURCE_REALTIME_TIMESTAMP", &dt, &dl) == 0) {
|
||||
long long int lt = atoi(dt + strlen("_SOURCE_REALTIME_TIMESTAMP="));
|
||||
long long unsigned int lt = atoll(dt + strlen("_SOURCE_REALTIME_TIMESTAMP="));
|
||||
if (lt > last_timestamp)
|
||||
last_timestamp = lt;
|
||||
else if (lt < last_timestamp)
|
||||
else if (lt < last_timestamp) {
|
||||
dbg("Discarding old entry: %llu - %llu\n", lt, last_timestamp);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (sd_journal_get_data(j, "MESSAGE", &d, &l) < 0) {
|
||||
|
||||
Reference in New Issue
Block a user