コード例 #1
0
ファイル: tcptable.c プロジェクト: josarlo84/iptraf
void refreshtcpwin(struct tcptable *table, unsigned int idx, int mode)
{
	struct tcptableent *ptmp;

	setlabels(table->borderwin, mode);
	wattrset(table->tcpscreen, STDATTR);
	tx_colorwin(table->tcpscreen);
	ptmp = table->firstvisible;

	while ((ptmp != NULL) && (ptmp->prev_entry != table->lastvisible)) {
		printentry(table, ptmp, idx, mode);
		ptmp = ptmp->next_entry;
	}

	wmove(table->borderwin, table->bmaxy - 1, 1);

	print_tcp_num_entries(table);

	update_panels();
	doupdate();
}
コード例 #2
0
ファイル: measure.c プロジェクト: 0x20c24/cjdns
static void printcycles(long long mlen)
{
  int i;
  for (i = 0;i < TIMINGS;++i) cycles[i] = cycles[i + 1] - cycles[i];
  printentry(mlen,"cycles",cycles,TIMINGS);
}