Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- range_start
- range_end
- location
- net_start = (range_start / 65536 * 65536)
- net_end = (range_end / 65536 * 65536)
- (0..( (net_end-net_start)/65536 )).each{ |i|
- net = (net_start + i * 65536).to_s
- @db.query("insert into blocks (range_start, range_end, location, net) values (" +
- range_start + "," + range_end + "," + location + "," + net + ")")
- }
Add Comment
Please, Sign In to add comment