Changeset 1473
- Timestamp:
- 04/08/08 12:08:24 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
hive/trunk/data_webapp/app/controllers/hc_database_controller.rb
r1455 r1473 66 66 obj_hash = YAML.load(obj_str) 67 67 cid = obj_hash.delete("client_id") 68 hid = Client.find(cid).host_id 68 #hid = Client.find(cid).host_id 69 client = Client.find(cid) 70 hid = client.host_id 69 71 count = 0 70 72 71 bee_work = {"c lient_id" =>cid, "urls" => []}73 bee_work = {"cid" => client.cid, "urls" => []} 72 74 73 75 # Insert all visited and timed out URLs into the … … 121 123 122 124 # Remove compromise time from fingerprint and use to update related client object 123 c_time = obj_hash.delete("time_at") 124 Client.update(obj_hash["client_id"],{:compromise => string_to_microseconds(c_time),:status => "suspicious"})125 c_time = obj_hash.delete("time_at") 126 client = Client.update(obj_hash["client_id"],{:compromise => string_to_microseconds(c_time),:status => "suspicious"}) 125 127 126 128 # Stores data for Job 127 BeeJob.add_job("fingerprint",Marshal.load(job_copy) )129 BeeJob.add_job("fingerprint",Marshal.load(job_copy),client.cid) 128 130 129 131 insert(Fingerprint,obj_hash)
