Mercurial > ~darius > hgwebdir.cgi > wh1080
comparison db.c @ 6:e0b32014ed14
Change defaul update interval to once a minute.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Thu, 11 Feb 2010 12:45:22 +1030 |
parents | f561c7f130a0 |
children |
comparison
equal
deleted
inserted
replaced
5:b22a888eb975 | 6:e0b32014ed14 |
---|---|
163 if (! config.db) | 163 if (! config.db) |
164 config.db = "weather"; | 164 config.db = "weather"; |
165 | 165 |
166 /* No updates required so don't bother with DB stuff */ | 166 /* No updates required so don't bother with DB stuff */ |
167 if (!update) { | 167 if (!update) { |
168 config.poll_interval = 5; | 168 config.poll_interval = 60; |
169 return 0; | 169 return 0; |
170 } | 170 } |
171 | 171 |
172 if (! mysql_init (mysql)) | 172 if (! mysql_init (mysql)) |
173 { | 173 { |