Commit Graph

57 Commits (143b35603192599ff336cc3c28598a4ffb56cb0e)

Author SHA1 Message Date
Adam Spiers 43ac6366cb fix -Wformat time_t warnings (#368)
Fix warnings like:

    ptimec.hh: In function ‘void ftime_i(char*, off_t&, ssize_t, const exttm&)’:
    ptimec.hh:387:57: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
         snprintf(&dst[off_inout], len - off_inout, "%lld", t);
                                                             ^

In this case we know that the `t` returned by `tm2sec` is a number of
seconds, so a long should be long enough, and anyway there is already
code checking for overflow.

Fixes #368.

https://github.com/tstack/lnav/issues/368
8 years ago
Timothy Stack 26cd9f5930 [ptime] make sure the full time stamp is matched
Fixes #389
Fixes #390
8 years ago
Timothy Stack 4c0a8d0376 [ptime] need to clear the zone from the base when using a custom time format 8 years ago
Timothy Stack 41a2eed239 [pretty-print] fix printing of quoted strings that have escaped characters
Fixes #354
8 years ago
Timothy Stack 876b37ade0 [log-format] add "truncate" overflow value 8 years ago
Timothy Stack c05dfafae8 [log-format] abbreviate long fields when formatting JSON logs
Fixes #340
8 years ago
Timothy Stack 41854cf637 [json-log] custom date formats
Fixes #341
8 years ago
Timothy Stack 96191badf3 [release] update versions for release and fix some time issues 8 years ago
Timothy Stack 4f05af6408 [time] add support for TAI64N timestamps
Fixes #300
8 years ago
Timothy Stack 7a6429519f [summary-line] change error count to error rate and do some cleanup on message levels 8 years ago
Timothy Stack 7c74ecf1e7 [logview] add a "time span" section to the summary and right justify the summary 8 years ago
Timothy Stack ff35d811e2 [logview] more summary line tweaks 8 years ago
Timothy Stack 80e5e8fcce [logview] add a line with summary information to the log view 8 years ago
Timothy Stack 9213a6b58b [out-of-order] some more tweaks for out-of-order 8 years ago
Timothy Stack a2b381ca19 [config] initial impl with clock-format as the only option at the moment 9 years ago
Timothy Stack 87b07a0087 [sql] allow log_part to be updated 9 years ago
Timothy Stack e07b4e448f [exec] add a prompt to execute lnav scripts 9 years ago
Timothy Stack c4ae8d158c [fmt] minor fix for the generic_log format and add another pattern to vmw_log 9 years ago
Timothy Stack 64cbab1281 [sql] exec .sql files in format dirs 9 years ago
Timothy Stack ec473edc85 [cmd] add support for times in goto 9 years ago
Timothy Stack 399c78d86d [pretty] pretty-print the contents of strings
Fixes #250
9 years ago
Timothy Stack bedae8c8c2 [fmt] install/update formats from git repos
Fixes #244
9 years ago
Timothy Stack 83b92c3b65 [papertrail] add support for time ranges 9 years ago
Timothy Stack f286950854 [curl] add a curl looper to handle url requests 9 years ago
Timothy Stack cec3d0cb72 [generic_log] add time format that includes zone 9 years ago
Timothy Stack 245a3c3d1b [fmt] allow timestamp to be specified in the log format
Fixes #155
9 years ago
Timothy Stack 0452bc0438 [build] some more sign-compare stuff 9 years ago
Suresh Sundriyal 0c30d52ca2 [Coverity] Remove dead code.
Given the fact that rem += SECSPERDAY is executed only when rem < 0,
it won't be possible for the condition 'rem >= SECSPERDAY' to be true.
9 years ago
Timothy Stack 1d3481c3fa [cmd] add pipe-to and pipe-line-to commands 9 years ago
Timothy Stack cd953a548c [filter] update the UI during filtering again
Defect Number:
    Reviewed By:
   Testing Done:
10 years ago
Timothy Stack 2d23f8e809 [time] use the gmtime from newlib
Defect Number:
    Reviewed By:
   Testing Done:
10 years ago
Timothy Stack 0859f69c9f try to fix a crash related to deleted files 10 years ago
Timothy Stack d4bea593b7 [perf] optimize json log loading 10 years ago
Timothy Stack a71ca1f1ca [filter] some improvements to the core filtering code 10 years ago
Timothy Stack d557002724 [format] add OpenAM log formats 10 years ago
Timothy Stack 8372cef11c [date] code generator for strptime formats 10 years ago
Timothy Stack 9ff2d3774d [line_buffer] split long lines
Fixes #81
11 years ago
Timothy Stack 3251554cf9 [byte_array] tweak the template so it is easier to use with SpookyHash 11 years ago
Suresh Sundriyal 13f5ad0dce Change the code to use Spookyhash.
* This change removes the external dependency on OpenSSL, which should
  allow the code to compile on Mac OS X without specifying the
  MAC_OS_X_VERSION_MIN_REQUIRED non-sense.
* Spookyhash should be faster than SHA-1's Merkle-Damgård construction.
* Spookyhash is only 128-bits as opposed to SHA-1's 160-bits so memory
  consumption should be less. I doubt it will lead to too many
  collisions.
* The docs are updated to reflect the fact that OpenSSL is not a
  dependency.
11 years ago
Timothy Stack e9d8172f61 instantiate templates for other number types 11 years ago
Timothy Stack 5ef8a168a7 [perf] reduce copies of log messages 11 years ago
Timothy Stack 13ecf0abf7 [date_time] temporary perf hack, parsing timezone is slow... 11 years ago
Timothy Stack 5e011a9203 [cygwin] misc fixes to get things building/running on windows
This change is just a first step, it should get the basics going.  But,
the tests don't all build and there are probably other issues when
running.
11 years ago
Timothy Stack 59c1d4313b [mouse] more mouse support and other fixes 11 years ago
Timothy Stack 75dd7e2ad6 [docs] start some UI docs 11 years ago
Timothy Stack 9b8ceb5cb0 [log formats] transfer more formats to config 11 years ago
Timothy Stack f801470fa5 [log format] more log formats 11 years ago
Timothy Stack e5cb6ff251 use isdigit 11 years ago
Timothy Stack 0537e13e85 missing include 11 years ago
Timothy Stack f3cab9aafd [log format] tweak some of the formats 11 years ago