File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,16 +4,16 @@ version = "0.1.1"
44edition = " 2021"
55
66[dependencies ]
7- clap = { version = " 4.5.20 " , features = [" derive" ] }
7+ clap = { version = " 4.5" , features = [" derive" ] }
88
9- hickory-resolver = " 0.24.1 "
10- local-ip-address = " 0.6.3 "
11- serde = { version = " 1.0.210 " , features = [" derive" ] }
12- serde_json = " 1.0.128 "
13- snafu = " 0.8.5 "
14- stackable-operator = { git = " https://github.com/stackabletech/operator-rs" , tag = " stackable-operator-0.83 .0" }
15- sysinfo = { version = " 0.32.0 " , features = [" serde" ] }
16- tracing = " 0.1.40 "
9+ hickory-resolver = " 0.24"
10+ local-ip-address = " 0.6"
11+ serde = { version = " 1.0" , features = [" derive" ] }
12+ serde_json = " 1.0"
13+ snafu = " 0.8"
14+ stackable-operator = { git = " https://github.com/stackabletech/operator-rs" , tag = " stackable-operator-0.86 .0" }
15+ sysinfo = { version = " 0.33 " , features = [" serde" ] }
16+ tracing = " 0.1"
1717
1818[build-dependencies ]
1919built = { version = " 0.7" , features = [" chrono" , " git2" ] }
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ pub struct OperatingSystem {
77 pub kernel_version : Option < String > ,
88 pub version : Option < String > ,
99 pub host_name : Option < String > ,
10- pub cpu_arch : Option < String > ,
10+ pub cpu_arch : String ,
1111}
1212
1313impl OperatingSystem {
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ impl Resources {
2727 // but should help keep each log statement local to where that info is collected.
2828
2929 sys. refresh_specifics (
30- RefreshKind :: new ( )
31- . with_cpu ( CpuRefreshKind :: new ( ) . with_cpu_usage ( ) )
30+ RefreshKind :: nothing ( )
31+ . with_cpu ( CpuRefreshKind :: nothing ( ) . with_cpu_usage ( ) )
3232 . with_memory ( MemoryRefreshKind :: everything ( ) ) ,
3333 ) ;
3434
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ impl User {
3030 sys. refresh_processes_specifics (
3131 sysinfo:: ProcessesToUpdate :: Some ( & [ pid] ) ,
3232 false ,
33- ProcessRefreshKind :: new ( ) . with_user ( UpdateKind :: OnlyIfNotSet ) ,
33+ ProcessRefreshKind :: nothing ( ) . with_user ( UpdateKind :: OnlyIfNotSet ) ,
3434 ) ;
3535 Ok ( ( ) )
3636 }
You can’t perform that action at this time.
0 commit comments