From 6c7c48a3aae8c15499fc087f8732c6964b857716 Mon Sep 17 00:00:00 2001 From: pang.jiabao <pang_jiabao@163.com> Date: 星期四, 10 四月 2025 15:55:18 +0800 Subject: [PATCH] 界面翻译为俄语 --- src/main/java/com/zy/core/ServerBootstrap.java | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/zy/core/ServerBootstrap.java b/src/main/java/com/zy/core/ServerBootstrap.java index bf699d1..5f17a58 100644 --- a/src/main/java/com/zy/core/ServerBootstrap.java +++ b/src/main/java/com/zy/core/ServerBootstrap.java @@ -35,6 +35,8 @@ @Autowired private MainProcess mainProcess; + int CRN_COUNT = 0; + public static final Map<CrnThread, Thread> map = new ConcurrentHashMap<>(); /** @@ -132,13 +134,15 @@ @Scheduled(cron = "0/3 * * * * ? ") public void kill() { - int i = 0; for (Map.Entry<CrnThread, Thread> entry : map.entrySet()) { - i++; + CRN_COUNT++; MelsecCrnThread key = (MelsecCrnThread) entry.getKey(); - System.out.println("绗�"+i+"涓爢鍨涙満绾跨▼閲嶅惎绾跨▼鏉′欢锛�"+(System.currentTimeMillis() - key.getSign())); - if (System.currentTimeMillis() - key.getSign() > 120000) { - System.out.println("绗�"+i+"涓爢鍨涙満绾跨▼琚噸鍚�"); +// System.out.println("绗�"+i+"涓爢鍨涙満绾跨▼閲嶅惎绾跨▼鏉′欢锛�"+(System.currentTimeMillis() - key.getSign())); + if (CRN_COUNT>10000){ + continue; + } + if (System.currentTimeMillis() - key.getSign() > 120000 && System.currentTimeMillis() - key.getSign()<1200000) { + System.out.println("绗�"+CRN_COUNT+"涓爢鍨涙満绾跨▼琚噸鍚�"); // 璇锋眰绾跨▼瀹夊叏鍋滄 key.requestStop(); -- Gitblit v1.9.1