Skip to content

Commit f44a84c

Browse files
committed
修复系统监控推送问题
1 parent cd26ef6 commit f44a84c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hsweb-web-websocket/src/main/java/org/hsweb/web/socket/cmd/support/SystemMonitorProcessor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public void exec(CMD cmd) throws Exception {
4545
Publish publish = new Publish();
4646
publish.setUserId(userId);
4747
publish.setCallback((String) cmd.getParams().get("callback"));
48-
cpuPublish.put(userId, publish);
4948
return publish;
5049
};
5150

@@ -55,6 +54,7 @@ public void exec(CMD cmd) throws Exception {
5554
if (publish == null)
5655
publish = supplier.get();
5756
publish.addSession(cmd.getSession());
57+
cpuPublish.put(userId, publish);
5858
if (!cpuMonitorIsStarted) {
5959
startPublishCpu();
6060
cpuMonitorIsStarted = true;
@@ -66,6 +66,7 @@ public void exec(CMD cmd) throws Exception {
6666
if (publish == null)
6767
publish = supplier.get();
6868
publish.addSession(cmd.getSession());
69+
memPublish.put(userId, publish);
6970
if (!memMonitorIsStarted) {
7071
startPublishMem();
7172
memMonitorIsStarted = true;

0 commit comments

Comments
 (0)