Hardcode maxids to 12
This commit is contained in:
+4
-4
@@ -217,10 +217,10 @@ proc fetchiidb {url echos dbdir dolog} {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if {$dolog eq 1} {puts "Echomap built"}
|
if {$dolog eq 1} {puts "Echomap built"}
|
||||||
# detect how many message IDs we can pass in a single query
|
# set how many message IDs we can pass in a single query
|
||||||
# (assuming the maximum GET length is 256 chars)
|
# (assuming the maximum GET length is 256 chars)
|
||||||
# then we assume 21 character per message ID
|
# and we assume 21 character per message ID
|
||||||
set maxids [expr {int(256 / 21)}]
|
set maxids 12
|
||||||
# pass the echo list and fetch the message IDs
|
# pass the echo list and fetch the message IDs
|
||||||
# now, process the map we've built
|
# now, process the map we've built
|
||||||
dict for {echoname msgids} $echomap {
|
dict for {echoname msgids} $echomap {
|
||||||
@@ -238,7 +238,7 @@ proc fetchiidb {url echos dbdir dolog} {
|
|||||||
}]
|
}]
|
||||||
# save the echo index file with all message IDs
|
# save the echo index file with all message IDs
|
||||||
writefileln $echofile [join $msgids "\n"]
|
writefileln $echofile [join $msgids "\n"]
|
||||||
if {$dolog eq 1} {puts "Fetching [llength $newmsgids] new messages from $echoname, $maxids messages per request..."}
|
if {$dolog eq 1} {puts "Fetching [llength $newmsgids] new messages from $echoname..."}
|
||||||
set idgroups ""
|
set idgroups ""
|
||||||
set grcount 0
|
set grcount 0
|
||||||
set localcount 0
|
set localcount 0
|
||||||
|
|||||||
Reference in New Issue
Block a user