comparison Lists.lua @ 97:19fd02bff870

Cleanup
author John@Doomsday
date Fri, 27 Apr 2012 08:26:17 -0400
parents 082ff877c443
children 25c127c4c1e8
comparison
equal deleted inserted replaced
96:082ff877c443 97:19fd02bff870
933 if t and t[j] < v.time then 933 if t and t[j] < v.time then
934 table.insert(o,v) 934 table.insert(o,v)
935 end 935 end
936 while j<n and t[j] <= v.time do j = j+1 end -- advance the foreign pointer past our current entry 936 while j<n and t[j] <= v.time do j = j+1 end -- advance the foreign pointer past our current entry
937 end -- j>=n ? add because the remote hit end of road. lt? add because it's a missing stamp 937 end -- j>=n ? add because the remote hit end of road. lt? add because it's a missing stamp
938 print("Received request at timebase",remoteBase,"and returning:") 938 --print("Received request at timebase",remoteBase,"and returning:")
939 PrintTable(o) 939 --PrintTable(o)
940 if getn(o) > 0 then 940 if getn(o) > 0 then
941 Send("CU",o) -- todo: send privately to the requster 941 Send("CU",o) -- todo: send privately to the requster
942 end 942 end
943 return true, o 943 return true, o
944 else 944 else