From abae90cd3f4515dd6d54c3ab0ebd11d8b6a040c2 Mon Sep 17 00:00:00 2001 From: kk8bit Date: Sun, 6 Apr 2025 22:20:37 +0800 Subject: [PATCH] v0.60.2 --- pyproject.toml | 2 +- web/resourcemonitor.js | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c5cc0c3..e88d47a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "kaytool" description ="KayTool boosts ComfyUI workflow efficiency with powerful tools like: image processing (resize, color, blur, expand, merge, crop), background/mask tasks via BiRefNet/RemBG, wireless data transfer (Get & Out), AI translation (Tencent/Baidu), Professional high-precision resource monitoring, dynamic math operations, flexible text handling, precision sliders, metadata/color profile-supported image saving, batch processing via folder loading, canvas node map export as PNG with metadata, quick Run options via right-click, node alignment toolbar with custom styles, and custom ComfyUI logo integration." -version = "0.60.1" +version = "0.60.2" license = {file = "LICENSE"} dependencies = ["rembg, timm, opencv-python, requests, py-cpuinfo, pynvml"] diff --git a/web/resourcemonitor.js b/web/resourcemonitor.js index 669530b..a14c486 100644 --- a/web/resourcemonitor.js +++ b/web/resourcemonitor.js @@ -1,6 +1,7 @@ import { app } from "../../../scripts/app.js"; import { api } from "../../scripts/api.js"; -class PromptExecution { + +class KayPromptExecution { constructor(id) { this.promptApi = null; this.executedNodeIds = []; @@ -312,7 +313,7 @@ const KayResourceMonitor = { getOrMakePrompt(id) { let prompt = this.promptsMap.get(id); if (!prompt) { - prompt = new PromptExecution(id); + prompt = new KayPromptExecution(id); this.promptsMap.set(id, prompt); } return prompt; @@ -373,7 +374,7 @@ const KayResourceMonitor = { if (currentNode === "Idle") { displayText = "Workflow: Idle"; barPercentage = 0; } else { - displayPercentage = isProgressUnknown ? "??%" : `${Math.min(Math.max(this.currentWorkflow.percentage, 0), 100).toFixed(1)}%`; + displayPercentage = isProgressUnknown ? "Loading" : `${Math.min(Math.max(this.currentWorkflow.percentage, 0), 100).toFixed(1)}%`; barPercentage = isProgressUnknown ? 0 : Math.min(Math.max(this.currentWorkflow.percentage, 0), 100); if (queueCount > 1) { displayPercentage += ` (${queueCount})`; }