diff options
Diffstat (limited to 'plugins-root')
-rw-r--r-- | plugins-root/check_icmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c index 246b466..0401788 100644 --- a/plugins-root/check_icmp.c +++ b/plugins-root/check_icmp.c | |||
@@ -1781,7 +1781,7 @@ get_timevar(const char *str) | |||
1781 | else if(u == 's') factor = 1000000; /* seconds */ | 1781 | else if(u == 's') factor = 1000000; /* seconds */ |
1782 | if(debug > 2) printf("factor is %u\n", factor); | 1782 | if(debug > 2) printf("factor is %u\n", factor); |
1783 | 1783 | ||
1784 | i = strtoul(str, &ptr, 0); | 1784 | i = strtoul(str, &ptr, 0); |
1785 | if(!ptr || *ptr != '.' || strlen(ptr) < 2 || factor == 1) | 1785 | if(!ptr || *ptr != '.' || strlen(ptr) < 2 || factor == 1) |
1786 | return i * factor; | 1786 | return i * factor; |
1787 | 1787 | ||