diff options
author | iximeow <me@iximeow.net> | 2023-07-02 16:27:26 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2023-07-02 16:27:26 -0700 |
commit | da45378ffdace5aacc63b2f85ebbab4c3fe265c1 (patch) | |
tree | 33433051c6bc6b57a74b122e92550fc5def332c6 /src | |
parent | e02825d34f1a0a905141ea0680358119f970e455 (diff) |
groan
Diffstat (limited to 'src')
-rw-r--r-- | src/dbctx.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/dbctx.rs b/src/dbctx.rs index 05910f1..314f09f 100644 --- a/src/dbctx.rs +++ b/src/dbctx.rs @@ -562,11 +562,9 @@ impl DbCtx { .unwrap() .query_row( "select id from hosts where \ - ( \ hostname=?1 and cpu_vendor_id=?2 and cpu_model_name=?3 and cpu_family=?4 and \ cpu_model=?5 and cpu_cores=?6 and mem_total=?7 and \ - arch=?10 \ - );", + arch=?10);", ( &host_info.hostname, &host_info.cpu_info.vendor_id, @@ -620,8 +618,7 @@ impl DbCtx { "select id from hosts where \ hostname=?1 and cpu_vendor_id=?2 and cpu_model_name=?3 and cpu_family=?4 and \ cpu_model=?5 and cpu_microcode=?6 and cpu_cores=?7 and mem_total=?8 and \ - arch=?9 and family=?10 and os=?11 \ - );", + arch=?9 and family=?10 and os=?11;", ( &host_info.hostname, &host_info.cpu_info.vendor_id, |