Changeset 38
- Timestamp:
- 05/27/08 18:22:54 (4 years ago)
- File:
-
- 1 edited
-
trunk/form_main.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/form_main.cpp
r37 r38 224 224 int from = 0; 225 225 226 const int count_per_request = 1000; 227 226 228 while (count != 0) 227 229 { … … 229 231 QList<int> ids; 230 232 231 while (ids.count() < 1000)233 while (ids.count() < count_per_request) 232 234 { 233 235 QList<int> exists; 234 236 235 237 // получение уже загруженных id 236 if (storage->GetMessageIds(from, from + 1000, exists, NULL) == false)238 if (storage->GetMessageIds(from, from + count_per_request, exists, NULL) == false) 237 239 { 238 240 storage->ShowError(this); … … 241 243 242 244 // анализ существующих 243 for (int i = from; i < from + 1000; i++)245 for (int i = from; i < from + count_per_request; i++) 244 246 { 245 247 int idx = exists.indexOf(i); … … 253 255 ids.append(i); 254 256 255 if (ids.count() == 1000)257 if (ids.count() == count_per_request) 256 258 break; 257 259 } … … 260 262 from = ids[ids.count() - 1] + 1; 261 263 else 262 from += 1000;264 from += count_per_request; 263 265 } 264 266
Note: See TracChangeset
for help on using the changeset viewer.
