diff --git a/install/local/install-scrypted-proxmox.sh b/install/local/install-scrypted-proxmox.sh index cdc24e3983..3178a8f79a 100644 --- a/install/local/install-scrypted-proxmox.sh +++ b/install/local/install-scrypted-proxmox.sh @@ -21,7 +21,7 @@ if [ -n "$SCRYPTED_RESTORE" ] then RESTORE_VMID=$VMID VMID=10444 - pct destroy $VMID 2> > /dev/null + pct destroy $VMID 2>&1 > /dev/null fi echo "Downloading scrypted container backup." diff --git a/plugins/homekit/src/video-clips-provider.ts b/plugins/homekit/src/video-clips-provider.ts index c22ed8ba7b..b3c5ea56ba 100644 --- a/plugins/homekit/src/video-clips-provider.ts +++ b/plugins/homekit/src/video-clips-provider.ts @@ -3,7 +3,7 @@ import { StorageSettings } from "@scrypted/sdk/storage-settings"; import checkDiskSpace from 'check-disk-space'; import { getSavePath, getVideoClip, getVideoClips, getVideoClipThumbnail, nukeClips, parseHksvId, pruneClips, removeVideoClip } from "./types/camera/camera-recording-files"; -const DAYS_TO_KEEP = 10; +const DAYS_TO_KEEP = 3; const PRUNE_AGE = DAYS_TO_KEEP * 24 * 60 * 60 * 1000; const { systemManager } = sdk; @@ -74,9 +74,9 @@ export class VideoClipsMixinProvider extends ScryptedDeviceBase implements Setti const diskSpace = await checkDiskSpace(savePath); let pruneAge = PRUNE_AGE; if (diskSpace.free < 10_000_000_000) { - pruneAge = 1 * 24 * 60 * 60 * 1000; + pruneAge = 1 * 60 * 60 * 1000; this.console.warn(`Low Disk space: ${savePath}`); - this.console.warn("Pruning videos older than 1 day to recover space."); + this.console.warn("Pruning videos older than 1 hour to recover space."); } pruneClips(pruneAge, this.console);