http test tune up value only return 0 or fails

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
Robert_in_MTL
Posts: 229
Joined: Tue Jun 20, 2006 1:20 pm
Location: Montreal, Quebec

http test tune up value only return 0 or fails

Post by Robert_in_MTL »

hi,

I would like an http test to set reply to seconds (or time) like this: xxx s
for now the reply looks like 53287 ms

I checked tune up Reply value and entered these:

[%Reply_Integer% div 1000] s
always returns 0s

[%Reply_Number% div 1000] s
makes an error: «Error in expression [0,00 div 1000]: unknown operator: "0,00"»

[%Reply% div 1000] s
makes an error: «Error in expression [ div 1000]: missed operand»

[%SuggestedReply% div 1000] s
makes an error: «Error in expression [ 52269 ms div 1000]: unknown operator: "ms"»

what should I do?

thanks
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Could you try the following expression, please?

Code: Select all

['%SuggestedReply%' div 1000] s
Regards,
Max
Robert_in_MTL
Posts: 229
Joined: Tue Jun 20, 2006 1:20 pm
Location: Montreal, Quebec

Post by Robert_in_MTL »

Hi! thanks for the quick response!

actually, I already did after reading the previous post:
http://www.ks-soft.net/cgi-bin/phpBB/vi ... highlight=
But no luck, always a reply of 0s!
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Robert_in_MTL wrote:But no luck, always a reply of 0s!
Hm. Actually, 0s means everything works properly. Reply time is just less than 1000 ms. div means integer division, so you will never see 0.5s or 0.7s

Regards,
Max
Robert_in_MTL
Posts: 229
Joined: Tue Jun 20, 2006 1:20 pm
Location: Montreal, Quebec

Post by Robert_in_MTL »

Ok, I got it, my test replied 817 ms, therefore, the 0s

it's not very intuitive though because the help page give examples without the ' '...
How could I know?

Now it works perfectly, thank you Max and merry Christmas to you and your team.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

it's not very intuitive though because the help page give examples without the ' '...
How could I know?
Quote from the manual
================
In these arithmetical expressions you can use:
- numbers and strings (in quotes).
Strings that contain a number plus one of the following unit specificators [ms, Kb, Mb, Gb, %] are compared as numbers, so that '900 Kb' is equivalent to 921600

In other word 100 Kb is not a valid number while '100 Kb' can be interpreted as valid number == 102400

Regards
Alex
Robert_in_MTL
Posts: 229
Joined: Tue Jun 20, 2006 1:20 pm
Location: Montreal, Quebec

Post by Robert_in_MTL »

I know, you are ALWAYS right. :oops:

I tried to do exactly like the examples. :oops:

Once again, thank you for your quick replies and I wish you all Ks-Soft Staff a very merry Christmas and a great 2009. :D:D:D
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

We are not always right but usually :wink:
Have a great holidays and happy new year :)

Regards
Alex
Post Reply