Exemple #1
0
/*
 * Display inodes
 *@files: number of inodes
 *@favail: number of available inodes
 */
static void
text_disp_inodes(uint64_t files, uint64_t favail)
{
	int i;

	if (unitflag == 'h') {
		i = humanize_i(&files);
		(void)printf("%*" PRIu64, max.nbinodes - 1, files);
		print_unit(i, 0);
		i = humanize_i(&favail);
		(void)printf("%*" PRIu64, max.avinodes - 1, favail);
		print_unit(i, 0);
	} else {
		(void)printf(" %*" PRIu64, max.nbinodes - 1, files);
		(void)printf(" %*" PRIu64, max.avinodes - 1, favail);
	}
}
Exemple #2
0
/*
 * Display inodes
 *@files: number of inodes
 *@favail: number of available inodes
 */
static void
html_disp_inodes(uint64_t files, uint64_t favail)
{
	int i;

	if (unitflag == 'h') {
		i = humanize_i(&files);
		(void)printf("\t  <td style = \"text-align: right;\">%" PRIu64,
				files);
		print_unit(i, 0);
		(void)printf("</td>\n");
		i = humanize_i(&favail);
		(void)printf("\t  <td style = \"text-align: right;\">%" PRIu64,
				favail);
		print_unit(i, 0);
		(void)printf("</td>\n");
	} else {
		(void)printf("\t  <td style = \"text-align: right;\">%" PRIu64
				"</td>\n", files);
		(void)printf("\t  <td style = \"text-align: right;\">%" PRIu64
				"</td>\n", favail);
	}
}