Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
refactor: drop the redundant floor clamp in alignFrameCount (#6509)
[._.]/ Adam Eivy5a250e8f4e6e
diff --git a/server/services/videoGen/upscalePlan.js b/server/services/videoGen/upscalePlan.jsindex 35c4c5bff4..b172122d44 100644--- a/server/services/videoGen/upscalePlan.js+++ b/server/services/videoGen/upscalePlan.js@@ -55,7 +55,7 @@ const roundUpTo = (value, multiple) => Math.ceil(value / multiple) * multiple;// The smallest frame count >= `frames` that satisfies the grid. `frames % 8 == 1`// has a solution every 8 frames, so this never overshoots by more than 7.export const alignFrameCount = (frames, grid = LTX_GRID) => {- const floor = Math.max(grid.minFrames, Math.max(1, Math.ceil(frames)));+ const floor = Math.max(grid.minFrames, Math.ceil(frames));const remainder = ((floor % grid.frameModulus) + grid.frameModulus) % grid.frameModulus;const delta = (grid.frameRemainder - remainder + grid.frameModulus) % grid.frameModulus;return floor + delta;