Exemplo n.º 1
0
/**
 * Print the buddy system status---order oriented
 *
 * print free pages in each order.
 */
void buddy_dump()
{
	fillCount();
	int o;
	for (o = MIN_ORDER; o <= MAX_ORDER; o++) {
		/*struct list_head *pos;
		int cnt = 0;
		list_for_each(pos, &free_area[o]) {
			cnt++;
		}*/
		printf("%d:%dK ", count[o], (1<<o)/1024);
	}
	printf("\n");
}
Exemplo n.º 2
0
DialogMove::DialogMove(RiskMap *map, RiskMapLand *att, RiskMapLand *def, QWidget *parent)
	: QDialog(parent)
{
	ui.setupUi(this);

	this->att = att;
	this->def = def;
	this->map = map;
	ui.labelAtt->setText( att->getLandName() );
	ui.labelDef->setText( def->getLandName() );
	ui.spinBoxAttackers->setSingleStep( 1 );
	ui.spinBoxAttackers->setRange( 0, att->getArmys()-1 );

	fillCount( att->getArmys()-1 );

}