summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1a228b0)
raw | patch | inline | side by side (parent: 1a228b0)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 20 Jan 2012 07:27:50 +0000 (07:27 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 20 Jan 2012 07:27:50 +0000 (07:27 +0000) |
src/rrd_graph.c | patch | blob | history |
diff --git a/src/rrd_graph.c b/src/rrd_graph.c
index 50a640a7edea604f63c4a98db69399b143ccf256..aa4be90d0cc92148bb2362e3555a20ba1441b93c 100644 (file)
--- a/src/rrd_graph.c
+++ b/src/rrd_graph.c
}
}
+/* power prefixes */
static char si_symbol[] = {
+ 'y', /* 10e-24 Yocto */
+ 'z', /* 10e-21 Zepto */
'a', /* 10e-18 Atto */
'f', /* 10e-15 Femto */
'p', /* 10e-12 Pico */
'T', /* 10e12 Tera */
'P', /* 10e15 Peta */
'E', /* 10e18 Exa */
+ 'Z', /* 10e21 Zeta */
+ 'Y' /* 10e24 Yotta */
};
-static const int si_symbcenter = 6;
+static const int si_symbcenter = 8;
/* find SI magnitude symbol for the numbers on the y-axis*/
void si_unit(