Forum Discussion
Joe_Sabek_47241
Oct 16, 2007Historic F5 Account
Statistics profile variable size limit
Does anyone know the data type of a variable defined in a statistics profile? What I am really looking for is what is the max size? And once that size is reached what happens? Does the variable flip to 0 or does it cause an error?
The reason I ask is I am counting the total number of Credit card transactions an iRule processes and I was wondering if I should flip the total to 0 when it reaches a certain value or if it is done automatically.
I guess I should also ask the same for the variable within the irule too ( ::total_tran ).
when RULE_INIT {
Set the statistics profile name
set :ROFILE_NAME "Tm_Statistics"
set ::total_tran 0
}
when CLIENT_CONNECTED {
incr ::total_tran
STATS::set $:ROFILE_NAME "Total_Transactions" $::total_tran
}Thanks!!
1 Reply
- Joe_Sabek_47241Historic F5 AccountI did a little testing and it seems the upper limit of a variable is somewhere around 2000000000 at which point
it flips to back and fourth from positive to negative. So I assume it
is a int/long int 2,147,483,648.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
