src/session.c
static int
smp_fetch_kbytes_out(struct stktable *table, struct sample *smp, struct stksess *ts)
{
	smp->flags = SMP_F_VOL_TEST;
	smp->type = SMP_T_UINT;
	smp->data.uint = 0;

	if (ts != NULL) {
		void *ptr = stktable_data_ptr(table, ts, STKTABLE_DT_BYTES_OUT_CNT);
		if (!ptr)
			return 0; /* parameter not stored */
		smp->data.uint = stktable_data_cast(ptr, bytes_out_cnt) >> 10;
	}
	return 1;
}
/* set temp integer to the number of kbytes sent to clients matching the stksess entry <ts> */
set temp integer to the number of kbytes sent to clients matching the stksess entry 
set temp integer to the number of kbytes sent to clients matching the stksess entry
static int
smp_fetch_kbytes_out(struct stktable *table, struct sample *smp, struct stksess *ts)
{
	smp->flags = SMP_F_VOL_TEST;
	smp->type = SMP_T_UINT;
	smp->data.uint = 0;
	if (ts != NULL) {
		void *ptr = stktable_data_ptr(table, ts, STKTABLE_DT_BYTES_OUT_CNT);
		if (!ptr)
			return 0; 
		smp->data.uint = stktable_data_cast(ptr, bytes_out_cnt) >> 10;
	}
	return 1;
}
static int smp_fetch_kbytes_out ( struct stktable * table , struct sample * smp , struct stksess * ts ) { smp -> flags = SMP_F_VOL_TEST ; smp -> type = SMP_T_UINT ; smp -> data . uint = 0 ; if ( ts != NULL ) { void * ptr = stktable_data_ptr ( table , ts , STKTABLE_DT_BYTES_OUT_CNT ) ; if ( ! ptr ) return 0 ; smp -> data . uint = stktable_data_cast ( ptr , bytes_out_cnt ) >> 10 ; } return 1 ; }
set temp integer to the number of kbytes sent to clients matching the stksess entry <ts>
set temp integer to the number of kbytes sent to clients matching the stksess entry <ts >
/* parameter not stored */