X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=df%2Foutput.c;h=2950fff26e1c9a2d47297ba91af70c1b652cebd0;hb=7d3848ddc046f79cc1112809bd9970eea8060018;hp=7852daa2d63d608f880a039188f7e9b333138883;hpb=6740028b333840eec5e8e46e8512f8155728b037;p=libguestfs.git diff --git a/df/output.c b/df/output.c index 7852daa..2950fff 100644 --- a/df/output.c +++ b/df/output.c @@ -13,7 +13,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include @@ -157,7 +157,7 @@ print_stat (const char *name, const char *uuid_param, /* Use 'ceil' on the percentage in order to emulate what df itself does. */ snprintf (buf[3], MAX_LEN, "%3.0f%%", ceil (percent)); else - snprintf (buf[3], MAX_LEN, "%.1f", percent); + snprintf (buf[3], MAX_LEN, "%.1f", (double) percent); cols[3] = buf[3]; #undef MAX_LEN