gallium/hud: display percentages with % suffix

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Brian Paul 2015-07-07 13:17:01 -06:00
parent a804f58243
commit 10cff5e1ae
1 changed files with 3 additions and 0 deletions

View File

@ -255,6 +255,9 @@ number_to_human_readable(uint64_t num, enum pipe_driver_query_type type,
assert(unit < ARRAY_SIZE(time_units));
suffix = time_units[unit];
break;
case PIPE_DRIVER_QUERY_TYPE_PERCENTAGE:
suffix = "%";
break;
case PIPE_DRIVER_QUERY_TYPE_BYTES:
assert(unit < ARRAY_SIZE(byte_units));
suffix = byte_units[unit];