projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b47b89
)
gallium/hud: fix printing byte units
author
Marek Olšák
<marek.olsak@amd.com>
Sun, 2 Aug 2015 15:08:29 +0000
(17:08 +0200)
committer
Marek Olšák
<marek.olsak@amd.com>
Thu, 6 Aug 2015 18:44:36 +0000
(20:44 +0200)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/auxiliary/hud/hud_context.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/hud/hud_context.c
b/src/gallium/auxiliary/hud/hud_context.c
index
e10152e
..
e0ca29d
100644
(file)
--- a/
src/gallium/auxiliary/hud/hud_context.c
+++ b/
src/gallium/auxiliary/hud/hud_context.c
@@
-235,7
+235,7
@@
number_to_human_readable(uint64_t num, enum pipe_driver_query_type type,
char *out)
{
static const char *byte_units[] =
- {"", " KB", " MB", " GB", " TB", " PB", " EB"};
+ {"
B
", " KB", " MB", " GB", " TB", " PB", " EB"};
static const char *metric_units[] =
{"", " k", " M", " G", " T", " P", " E"};
static const char *time_units[] =