diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2003-12-23 13:05:32 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2003-12-23 13:05:32 +0000 |
| commit | f8146a90f7c19d9cded10a569f73c75312072631 (patch) | |
| tree | c622b4b1254df2b9eba7d95e8f0754a7e85ab674 /include/functions.c | |
| parent | 877a93283845f639fedf7b9a80a20da7eccb076d (diff) | |
Graceful processing of "database gone away" situations.
git-svn-id: svn://svn.zabbix.com/trunk@1094 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'include/functions.c')
| -rw-r--r-- | include/functions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions.c b/include/functions.c index b6f85166..c962badf 100644 --- a/include/functions.c +++ b/include/functions.c @@ -449,7 +449,7 @@ int evaluate_FUNCTION(char *value,DB_ITEM *item,char *function,char *parameter) else if(strcmp(function,"now")==0) { now=time(NULL); - sprintf(value,"%d",now); + sprintf(value,"%d",(int)now); } else { |
