Remove a double % in the output

This commit is contained in:
Andrea Mazzoleni 2015-01-28 18:50:08 +01:00
parent 17631345c6
commit e4d33e9d28

View file

@ -276,7 +276,7 @@ static void printl(const char* str, size_t pad)
static void printp(double v, size_t pad) static void printp(double v, size_t pad)
{ {
char buf[64]; char buf[64];
const char* s = "%%"; const char* s = "%";
if (v > 0.1) if (v > 0.1)
snprintf(buf, sizeof(buf), "%5.2f%s", v, s); snprintf(buf, sizeof(buf), "%5.2f%s", v, s);