setTemplateValueDouble( TemplateInstance tmpl, char * key, double val ) {
storage.flags = TND_DEFINED;
storage.type = valueDouble;
- storage.value.boolValue = val;
+ storage.value.doubleValue = val;
return setTemplateValue( tmpl, key );
}
******************************************************************************
* SYNTAX *
******************************************************************************
- * <% EXPRESSION , "FORMAT"] [# "DEFAULTVALUE"] [|(h|u)]%>
+ * <% EXPRESSION [, "FORMAT"] [# "DEFAULTVALUE"] [|(h|u)]%>
* - format value should be as in strftime for time value and printf
* for all other. Currently, bool values have only "true"/"false"
* string values
/* fast allocate */
-#define CNTXCHUNK (1024*1024)
+#define CNTXCHUNK (64*1024)
typedef struct MemoryChunk {
size_t size;