Plan Checker (neues Studenten-Werkzeug, Seitenleiste + Admin → Plan-Checker- Merkmale): lädt einen Bauplan als PDF hoch und lässt ChatGPT oder Claude ihn gegen eine gepflegte Merkmalsliste prüfen. PDF-Rendering (pdf.js + @napi-rs/canvas) berücksichtigt jetzt Ebenen (Optional Content Groups) und WASM-Decoder korrekt, sendet eine Übersicht plus mehrere hochaufgelöste Kachel-Ausschnitte statt eines einzelnen, zu groben Bilds, und beide Anbieter bekommen dasselbe Bildmaterial. Jedes Prüfergebnis kann auf eines der gesendeten Bilder als Beleg verweisen (bildIndex) — als Screenshot im Ergebnis anklickbar, öffnet vergrößert in einem Modal statt eines von Chrome blockierten target=_blank-Links auf eine data:-URL. KI-Modellname ist jetzt pro Konto überschreibbar (Einstellungen → Mein Konto) für Drittanbieter mit abweichendem Modell-Katalog. Wochenbericht: dichte Kartenansicht bekommt einen Fokus-Modus — nur der Kommentar liegt offen, Leistungsphasen und Beteiligte stecken in aufklappbaren Abschnitten statt dauerhaft nebeneinander zu stehen. Projektbereich: Terminplan-Auslastung rechnet jetzt exakt wie der Auslastungs-Tab/die Wandtafel (statt einer unabhängigen, tageweisen Schätzung); die LPH-Fortschrittsliste im Dashboard zeigt nur noch die beauftragten Leistungsphasen. Wandtafel: Dashboard-Kopf mit Kennzahlen-Reihe und Panel-Reihe neu strukturiert, in den Blautönen des Firmenlogos; dieselbe Palette wurde anschließend auf den gesamten App-weiten Dark Mode übernommen. Dateibereinigung: nicht mehr benötigte Test-Uploads/Backups entfernt. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
3.2 KiB
PoolStats
Stability: 2 - Stable
PoolStats exposes a read-only snapshot of the aggregate connection and request
counters for a Pool or BalancedPool. An instance is created lazily
each time the pool.stats getter is accessed, so the values reflect the state of
the pool at the moment of access.
PoolStats is not constructed directly in normal use; obtain an instance from
the stats property of a pool:
import { Pool } from 'undici'
const pool = new Pool('http://localhost:3000')
const { stats } = pool
console.log(stats.connected, stats.running, stats.size)
Class: PoolStats
Each property is a plain number computed from the pool's internal state when the
instance is created. The instance is a snapshot; read pool.stats again to
observe later changes.
new PoolStats(pool)
pool{Pool|BalancedPool} The pool to read counters from.
Creates a new PoolStats instance from the current state of pool. Prefer the
pool.stats getter, which returns a fresh PoolStats on each access.
poolStats.connected
- Type: {number}
Number of open socket connections in this pool.
poolStats.free
- Type: {number}
Number of open socket connections in this pool that do not have an active request.
poolStats.pending
- Type: {number}
Number of pending requests across all clients in this pool.
poolStats.queued
- Type: {number}
Number of queued requests across all clients in this pool.
poolStats.running
- Type: {number}
Number of currently active requests across all clients in this pool.
poolStats.size
- Type: {number}
Number of active, pending, or queued requests across all clients in this pool.