Commit a898a217 authored by Fardale's avatar Fardale

fix 7d59031e

Need the job to restore the state of the machine
parent 005da599
......@@ -27,17 +27,7 @@ let string_of_sockaddr = function
let end_job id sockaddr =
let n, l = SHashtbl.find nodes (string_of_sockaddr sockaddr) in
let j =
{ id
; env= []
; script= ""
; args= []
; time= None
; pass= ""
; port= 0
; cpu= 0
; ram= 0 }
in
let j = List.find (fun c -> c.id = id) l in
SHashtbl.replace nodes
(string_of_sockaddr sockaddr)
( {n with cpu= n.cpu + j.cpu; ram= n.ram + j.ram}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment