Display percentage in decimal instead of integer in 'df' command from fossilcons. This is more consistent with the 'check' command, which displays percentages in decimal. Reference: /n/sources/patch/applied/fossil-df-float Date: Fri Nov 18 23:47:54 CET 2011 Signed-off-by: djc@9grid.fr --- /sys/src/cmd/fossil/9fsys.c Fri Nov 18 23:47:39 2011 +++ /sys/src/cmd/fossil/9fsys.c Fri Nov 18 23:53:08 2011 @@ -844,9 +844,9 @@ fs = fsys->fs; cacheCountUsed(fs->cache, fs->elo, &used, &tot, &bsize); - consPrint("\t%s: %,llud used + %,llud free = %,llud (%llud%% used)\n", + consPrint("\t%s: %,llud used + %,llud free = %,llud (%.1f%% used)\n", fsys->name, used*(vlong)bsize, (tot-used)*(vlong)bsize, - tot*(vlong)bsize, used*100LL/tot); + tot*(vlong)bsize, (float)used*100LL/tot); return 1; }