diff --git a/mindinsight/sysmetric/collector/_collect_npu.py b/mindinsight/sysmetric/collector/_collect_npu.py index c5ede859bf84bc598c10f3b049185c81413e8ff6..de3ec359f5d676ec99065889dd5eb05cb325fea9 100644 --- a/mindinsight/sysmetric/collector/_collect_npu.py +++ b/mindinsight/sysmetric/collector/_collect_npu.py @@ -91,7 +91,7 @@ def _libsmicall(*args): fname = inspect.stack()[1].function error_code = getattr(libsmi, fname)(*args) if error_code != 0: - logger.error(f'{fname} querying failed with error code {error_code}.') + logger.error('%s querying failed with error code %d.', fname, error_code) return error_code == 0 diff --git a/mindinsight/ui/src/locales/zh-cn.json b/mindinsight/ui/src/locales/zh-cn.json index 4d17e558b3b33d374617417fb81f314ed9146697..d60228738be99e697a07487fd734689bd8de8c51 100644 --- a/mindinsight/ui/src/locales/zh-cn.json +++ b/mindinsight/ui/src/locales/zh-cn.json @@ -396,7 +396,7 @@ "allCpu": "CPU-总计:", "chipNameTip": "芯片名称", "deviceIdTip": "芯片号", - "availableTip": "芯片是否空闲", + "availableTip": "芯片是否空闲(仅供参考)", "healthTip": "芯片健康指数", "ipTip": "芯片IP地址", "aicoreTip": "芯片利用率", @@ -422,7 +422,7 @@ "emergencyWarn": "紧急警告", "noChip": "芯片不存在或未启动", "availableFree": "芯片空闲", - "availableBusy": "芯片已被占用或不可用(仅供参考)", + "availableBusy": "芯片已被占用或不可用", "failQueryChip": "芯片信息查询有误", "faliQuery": "查询有误" },