moved cpu usage to a grpc call that the gui will listen to, fixed grpc stream typing to be grpc.Future, fixed pygui issue for start callback when a start fails, but there are no exceptions
This commit is contained in:
parent
3544d00431
commit
fff4bd7963
7 changed files with 85 additions and 47 deletions
|
@ -51,6 +51,8 @@ service CoreApi {
|
|||
}
|
||||
rpc Throughputs (ThroughputsRequest) returns (stream ThroughputsEvent) {
|
||||
}
|
||||
rpc CpuUsage (CpuUsageRequest) returns (stream CpuUsageEvent) {
|
||||
}
|
||||
|
||||
// node rpc
|
||||
rpc AddNode (AddNodeRequest) returns (AddNodeResponse) {
|
||||
|
@ -347,6 +349,14 @@ message ThroughputsEvent {
|
|||
repeated InterfaceThroughput iface_throughputs = 3;
|
||||
}
|
||||
|
||||
message CpuUsageRequest {
|
||||
int32 delay = 1;
|
||||
}
|
||||
|
||||
message CpuUsageEvent {
|
||||
double usage = 1;
|
||||
}
|
||||
|
||||
message InterfaceThroughput {
|
||||
int32 node_id = 1;
|
||||
int32 iface_id = 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue