mirror of
https://github.com/newnius/YAO-agent.git
synced 2025-06-06 21:31:55 +00:00
bugfix
This commit is contained in:
parent
6229798726
commit
5459554333
3
agent.py
3
agent.py
@ -10,7 +10,6 @@ from kafka import KafkaProducer
|
|||||||
import multiprocessing
|
import multiprocessing
|
||||||
import psutil
|
import psutil
|
||||||
import math
|
import math
|
||||||
from executor import launch_tasks
|
|
||||||
from http.server import BaseHTTPRequestHandler, HTTPServer
|
from http.server import BaseHTTPRequestHandler, HTTPServer
|
||||||
import cgi
|
import cgi
|
||||||
import docker
|
import docker
|
||||||
@ -321,7 +320,7 @@ def report_msg(stats):
|
|||||||
ver = time.time()
|
ver = time.time()
|
||||||
last_version = post_fields
|
last_version = post_fields
|
||||||
|
|
||||||
post_fields['flag'] = ver
|
post_fields['version'] = ver
|
||||||
data = json.dumps(post_fields)
|
data = json.dumps(post_fields)
|
||||||
|
|
||||||
if flag:
|
if flag:
|
||||||
|
Loading…
Reference in New Issue
Block a user