Changeset 1473

Show
Ignore:
Timestamp:
04/08/08 12:08:24 (5 months ago)
Author:
dbryson
Message:

more bee changes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • hive/trunk/data_webapp/app/controllers/hc_database_controller.rb

    r1455 r1473  
    6666    obj_hash = YAML.load(obj_str) 
    6767    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 
    6971    count = 0 
    7072 
    71     bee_work = {"client_id" => cid, "urls" => []} 
     73    bee_work = {"cid" => client.cid, "urls" => []} 
    7274 
    7375    # Insert all visited and timed out URLs into the 
     
    121123     
    122124    # 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"}) 
    125127     
    126128    # Stores data for Job 
    127     BeeJob.add_job("fingerprint",Marshal.load(job_copy)
     129    BeeJob.add_job("fingerprint",Marshal.load(job_copy),client.cid
    128130     
    129131    insert(Fingerprint,obj_hash)