[docs] some minor doc updates

This commit is contained in:
Timothy Stack 2016-04-05 06:22:25 -07:00
parent 96191badf3
commit efc74a5a0e
3 changed files with 23 additions and 32 deletions

View File

@ -62,16 +62,16 @@ Display
* highlight <regex> - Colorize text that matches the given regex.
* clear-highlight <regex> - Clear a previous highlight.
* spectrogram <numeric-field> - Generate a spectrogram for the given log
message field. The spectrogram view displays the range of possible values of
the field on the horizontal axis and time on the vertical axis. The
horizontal axis is split into buckets where each bucket counts how many log
messages contained the field with a value in that range. The buckets are
colored based on the count in the bucket: green means low, yellow means
medium, and red means high. The exact ranges for the colors is computed
automatically and displayed in the middle of the top line of the view. The
minimum and maximum values for the field are displayed in the top left and
right sides of the view, respectively.
* spectrogram <numeric-field> - Generate a spectrogram for a numeric log
message field or SQL result column. The spectrogram view displays the range
of possible values of the field on the horizontal axis and time on the
vertical axis. The horizontal axis is split into buckets where each bucket
counts how many log messages contained the field with a value in that range.
The buckets are colored based on the count in the bucket: green means low,
yellow means medium, and red means high. The exact ranges for the colors is
computed automatically and displayed in the middle of the top line of the
view. The minimum and maximum values for the field are displayed in the
top left and right sides of the view, respectively.
* switch-to-view <name> - Switch to the given view name (e.g. log, text, ...)

View File

@ -513,27 +513,18 @@ COMMANDS
close the current file by pressing 'X'.
spectrogram <field-name>
Generate a spectrogram for the given log message field.
The spectrogram view displays the range of possible values
of the field on the horizontal axis and time on the
vertical axis. The horizontal axis is split into buckets
where each bucket counts how many log messages contained
the field with a value in that range. The buckets are
colored based on the count in the bucket: green means low,
yellow means medium, and red means high. The exact ranges
for the colors is computed automatically and displayed in
the middle of the top line of the view. The minimum and
maximum values for the field are displayed in the top left
and right sides of the view, respectively.
graph <regex> Graph the value of numbers in the file(s) over
time. The given regular expression should capture
the number to be displayed. For example:
my stats: (\d+\.\d+)
Will graph all the "stats" values found in the
file. XXX This is still mostly a toy...
Generate a spectrogram for a numeric log message field or
SQL result column. The spectrogram view displays the range
of possible values of the field on the horizontal axis and
time on the vertical axis. The horizontal axis is split
into buckets where each bucket counts how many log messages
contained the field with a value in that range. The buckets
are colored based on the count in the bucket: green means
low, yellow means medium, and red means high. The exact
ranges for the colors is computed automatically and
displayed in the middle of the top line of the view. The
minimum and maximum values for the field are displayed in
the top left and right sides of the view, respectively.
append-to <file> Append any marked lines to the given file.

View File

@ -191,7 +191,7 @@ void logfile_sub_source::text_value_for_line(textview_curses &tc,
padding,
' ');
shift_string_attrs(this->lss_token_attrs,
time_range.lr_start,
time_range.lr_start + 1,
padding);
}
value_out.replace(time_range.lr_start,