diff options
author | Michael Mann <mmann78@netscape.net> | 2016-12-12 13:22:05 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-12-13 22:56:36 +0000 |
commit | a869ec6f55160622a90bc437517dee91d57f85d5 (patch) | |
tree | ea55cf7ba5f820af87e01d2a28d38d6b6ebe547e /epan/unit_strings.c | |
parent | e150235ef14cf6a9ada7d74c534e4aee469f3ac5 (diff) |
Adjust proto_tree_add_[float|double]_format_value calls to use unit string
Several calls to proto_tree_add_[float|double]_xxx could be better served
using BASE_UNIT_STRING with a "unit string" in hf_ field.
Added a few more "common" unit string values to unit_strings.[ch]
Change-Id: Id0da7b579403898d20c2667d6c4abcd59d5a48d4
Reviewed-on: https://code.wireshark.org/review/19241
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/unit_strings.c')
-rw-r--r-- | epan/unit_strings.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/unit_strings.c b/epan/unit_strings.c index 27b066937d..03dd077923 100644 --- a/epan/unit_strings.c +++ b/epan/unit_strings.c @@ -54,6 +54,12 @@ const unit_name_string units_second_seconds = { " second", " seconds" }; const unit_name_string units_seconds = { "s", NULL }; const unit_name_string units_millisecond_milliseconds = { " millisecond", " milliseconds" }; const unit_name_string units_milliseconds = { "ms", NULL }; +const unit_name_string units_nanosecond_nanoseconds = { " nanosecond", " nanoseconds" }; +const unit_name_string units_degree_degrees = { " degree", " degrees" }; +const unit_name_string units_ghz = { "GHz", NULL }; +const unit_name_string units_hz = { "Hz", NULL }; +const unit_name_string units_hz_s = { "Hz/s", NULL }; + /* * Editor modelines |