home *** CD-ROM | disk | FTP | other *** search
- #include "Shell.Label.h"
-
- #include "Structs.h"
- #include "StatDispl.h"
-
-
-
-
- void UpdateAppStatsDisplay( app_block *app)
- {
- Shell_ReLabelf( app->numblocks, "Number of blocks: %8i ", app->num_blocks);
- Shell_ReLabelf( app->total, "Total memory allocated: %8i ", app->stats.total);
- Shell_ReLabelf( app->totalmem, "Memory space: %8i ", app->max_mem-app->min_mem);
-
- if ( app->max_mem != app->min_mem)
- Shell_ReLabelf(
- app->percentageused,
- "Percentage used: %8.2f%%",
- 100.0*app->stats.total / ((double) app->max_mem-app->min_mem)
- );
-
- return;
- }
-