Skip to content

Commit

Permalink
enable zram by default (#2470)
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-bonez authored Oct 23, 2023
1 parent a69cae2 commit 740e63d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/db/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl Database {
.map(|x| format!("{x:X}"))
.join(":"),
system_start_time: Utc::now().to_rfc3339(),
zram: false,
zram: true,
},
package_data: AllPackageData::default(),
ui: serde_json::from_str(include_str!("../../../frontend/patchdb-ui-seed.json"))
Expand Down
1 change: 1 addition & 0 deletions backend/src/version/v0_3_5.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ impl VersionT for Version {
}
}
db.mutate(|v| {
v.as_server_info_mut().as_zram_mut().ser(&true)?;
for (_, pde) in v.as_package_data_mut().as_entries_mut()? {
for (dependency, info) in pde
.as_installed_mut()
Expand Down

0 comments on commit 740e63d

Please sign in to comment.