search for: time_unit

Displaying 3 results from an estimated 3 matches for "time_unit".

Did you mean: time_init
2010 Jun 24
0
Nested Model Forms
I''m trying to get a multi level nested form model working but have hit a problem. In one of my models, I have a habtm association and it''s throwing an error on a nested form and these are check boxes with a method of ''time_unit_ids[]''. The nested forms work without the habtm (time_unit_ids[]) so things are pretty much set up okay. Here''s the set up (obviously well and truly stripped back). Hopefully someone can see something I''m missing. CIA -ants Models: event_category: has_many :event_t...
2018 Jan 10
14
[Bug 1214] New: Allow limit to use any value for time unit
...d unit is converted to seconds in http://git.netfilter.org/nftables/tree/src/datatype.c#n1074 , so it should be possible to change: "limit 10/mn" to "limit 10/300" (or "limit 10/300s") This would require an additional line in the code from: static struct error_record *time_unit_parse(const struct location *loc, const char *str, uint64_t *unit) { if (strcmp(str, "second") == 0) *unit = 1ULL; else if (strcmp(str, "minute") == 0) *unit = 1ULL * 60; else if (strcmp(str, "hour") == 0) *un...
2013 Jun 08
2
[Bug 827] New: limit: support is broken
...oc_nft_expr(nfnl_nft_limit_init); nfnl_nft_limit_set_rate(nle, stmt->limit.rate); nfnl_nft_limit_set_depth(nle, stmt->limit.depth); nfnl_nft_rule_add_expr(ctx->nlr, nle); } </pre> but in parser.y we have: <pre> limit_stmt : LIMIT RATE NUM SLASH time_unit { $$ = limit_stmt_alloc(&@$); $$->limit.rate = $3; $$->limit.unit = $5; } ; </pre> So the depth is always 0 and unit is not set. -- Configure bugmail: https://bugzilla.netfilter.org/userp...