Forum Discussion
AndrewO_4840
Nimbostratus
Feb 12, 2009How can this fail?
I'm using a variation of the request rate limiting iRule ( http://devcentral.f5.com/wiki/default.aspx/iRules/HTTPRequestThrottle.html ) - it's essentially the same without the whitelist or blacklist f...
L4L7_53191
Nimbostratus
Feb 13, 2009It looks like the interpreter thinks you're dealing with a literal empty string, not a zero (or other number). This is from a normal TCL command line, not a BigIP, but it's pretty easy to replicate:
% set one [clock seconds]
1234571258
% set two ""
% expr { $one - $two }
can't use empty string as operand of "-"
%
% set two 0
0
% expr { $one - $two }
1234571258
%
So this hints that you may need to look back at the code and make sure that $start_time is correctly set to something other than an empty string.
HTH,
-Matt
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
