-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some various cleanups and refactoring of Sami's commits, in particular: - Require explicitly requesting strftime() filtering of the -w argument, via either --localtime or --gmtime. This allows a choice of local timezone or UTC timestamps. - Factor out the strftime() rewriting code from open_write_file() into a new function update_output_fname(). - Factor out the file rotation code from cb_read() into a new function maybe_rotate_output(). - Remove the arbitrary 1024-byte limit on filenames. (Though, add a 256-byte arbitrary limit on the expansion of the strftime() format specifier, since there doesn't appear to be a way to obtain that size in advance.) - Remove the filename suffix appending feature. I'm not sure this is entirely necessary. (But if it is it should probably be done via a separate patch.)
- Loading branch information
Robert Edmonds
committed
Apr 27, 2016
1 parent
b6e31c5
commit dc359f8
Showing
1 changed file
with
117 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters