mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
Fix/backups (#2659)
* fix master build (#2639) * feat: Change ts to use rsync Chore: Update the ts to use types over interface * feat: Get the rust and the js to do a backup * Wip: Got the backup working? * fix permissions * remove trixie list * update tokio to fix timer bug * fix error handling on backup * wip * remove idmap * run restore before init, and init with own version on restore --------- Co-authored-by: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com> Co-authored-by: Aiden McClelland <me@drbonez.dev>
This commit is contained in:
@@ -10,12 +10,12 @@ use crate::util::{FileLock, Invoke};
|
||||
use crate::{Error, ErrorKind};
|
||||
|
||||
lazy_static::lazy_static! {
|
||||
static ref SEMITONE_K: f64 = 2f64.powf(1f64 / 12f64);
|
||||
static ref A_4: f64 = 440f64;
|
||||
static ref C_0: f64 = *A_4 / SEMITONE_K.powf(9f64) / 2f64.powf(4f64);
|
||||
static ref SEMITONE_K: f64 = 2f64.powf(1.0 / 12.0);
|
||||
static ref A_4: f64 = 440.0;
|
||||
static ref C_0: f64 = *A_4 / SEMITONE_K.powf(9.0) / 2_f64.powf(4.0);
|
||||
}
|
||||
|
||||
pub const SOUND_LOCK_FILE: &str = "/etc/embassy/sound.lock";
|
||||
pub const SOUND_LOCK_FILE: &str = "/run/startos/sound.lock";
|
||||
|
||||
struct SoundInterface {
|
||||
guard: Option<FileLock>,
|
||||
|
||||
Reference in New Issue
Block a user