gallium/hud: display percentages with % suffix
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
a804f58243
commit
10cff5e1ae
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue