Apply style to all client files.

This commit is contained in:
mmdolze committed 2011-11-20 15:24:14 +00:00
1 parent 27d1bc1087
commit 46b0c5cf77
14 files changed
+316 -383

No files matched your search

+6 -4
View File
@@ -2,7 +2,7 @@
* Utility functions to print some numerical values in a nice fashion
*/
/*
/*-
* Copyright (C) 2005 Peter Marschall
*
* This program is free software; you can redistribute it and/or
@@ -76,7 +76,7 @@ sprintf_percent(char *dst, double percent)
char *
convert_double(double *value, int base, double roundlimit)
{
static char *units[] = { "", "k", "M", "G", "T", "P", "E", "Z", "Y", NULL };
static char *units[] = {"", "k", "M", "G", "T", "P", "E", "Z", "Y", NULL};
int off = 0;
if ((roundlimit <= 0.0) || (roundlimit > 1.0))
@@ -84,8 +84,10 @@ convert_double(double *value, int base, double roundlimit)
/* Get value's order of magnitude */
while (units[off] != NULL) {
/* Note: the check for 1000 is to idenfity the number of
* characters in the output needed, not to decide if to scale value.
/*
* Note: the check for 1000 is to idenfity the number of
* characters in the output needed, not to decide if to scale
* value.
*/
if (*value < 1000 * roundlimit)
break;