fix: docker update mem&cpu use binate value
spawn_id for mem&cpu use the current binate value, to enable two concurrent executes from the same docker container id
This commit is contained in:
+2
-2
@@ -443,7 +443,7 @@ impl AppData {
|
||||
if f.starts_with('/') {
|
||||
f.remove(0);
|
||||
}
|
||||
f.to_string()
|
||||
f.clone()
|
||||
})
|
||||
});
|
||||
|
||||
@@ -457,7 +457,7 @@ impl AppData {
|
||||
.as_ref()
|
||||
.map_or("".to_owned(), |f| f.trim().to_owned());
|
||||
|
||||
let image = i.image.as_ref().map_or("".to_owned(), |f| f.clone());
|
||||
let image = i.image.as_ref().map_or("".to_owned(), std::clone::Clone::clone);
|
||||
|
||||
if let Some(current_container) = self.get_container_by_id(id) {
|
||||
if current_container.name != name {
|
||||
|
||||
Reference in New Issue
Block a user