A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use correct capitalization for unit prefixes.
[simgrid.git]
/
src
/
surf
/
surfxml_parse.c
diff --git
a/src/surf/surfxml_parse.c
b/src/surf/surfxml_parse.c
index
95080a4
..
2cff098
100644
(file)
--- a/
src/surf/surfxml_parse.c
+++ b/
src/surf/surfxml_parse.c
@@
-115,12
+115,12
@@
double surf_parse_get_bandwidth(const char *string)
{ "TBps", 1e12 },
{ "GBps", 1e9 },
{ "MBps", 1e6 },
- { "
K
Bps", 1e3 },
+ { "
k
Bps", 1e3 },
{ "Bps", 1.0 },
{ "", 1.0 }, /* default unit is bytes ber second */
- { "
t
bps", 0.125 * 1e12 },
- { "
g
bps", 0.125 * 1e9 },
- { "
m
bps", 0.125 * 1e6 },
+ { "
T
bps", 0.125 * 1e12 },
+ { "
G
bps", 0.125 * 1e9 },
+ { "
M
bps", 0.125 * 1e6 },
{ "kbps", 0.125 * 1e3 },
{ "bps", 0.125 },
{ NULL, 0 }
@@
-132,19
+132,19
@@
double surf_parse_get_power(const char *string)
{
const struct unit_scale units[] = {
{ "yottaflops", 1e24 },
- { "
y
f", 1e24 },
+ { "
Y
f", 1e24 },
{ "zettaflops", 1e21 },
- { "
z
f", 1e21 },
+ { "
Z
f", 1e21 },
{ "exaflops", 1e18 },
- { "
e
f", 1e18 },
+ { "
E
f", 1e18 },
{ "petaflops", 1e15 },
- { "
p
f", 1e15 },
+ { "
P
f", 1e15 },
{ "teraflops", 1e12 },
- { "
t
f", 1e12 },
+ { "
T
f", 1e12 },
{ "gigaflops", 1e9 },
- { "
g
f", 1e9 },
+ { "
G
f", 1e9 },
{ "megaflops", 1e6 },
- { "
m
f", 1e6 },
+ { "
M
f", 1e6 },
{ "kiloflops", 1e3 },
{ "kf", 1e3 },
{ "flops", 1.0 },