analog: support ppm output

This commit is contained in:
Bert Vermeulen 2012-12-15 22:50:33 +01:00
parent 7f00750ca4
commit 7249d7833b
1 changed files with 3 additions and 0 deletions

View File

@ -173,6 +173,9 @@ static void fancyprint(int unit, int mqflags, float value, GString *out)
* a made-up notation. */
g_string_append(out, " %oA");
break;
case SR_UNIT_CONCENTRATION:
g_string_append_printf(out, "%f ppm", value * 1000000);
break;
default:
si_printf(value, out, "");
}