nushell/crates/nu-command
Reilly Wood 324d625324
Fix CPU frequency in sys output (#8275)
The `sys | get cpu.freq` column (supposed to contain the frequency for
each CPU core in megahertz) was incorrect for 2 reasons:
1. We weren't telling the `sysinfo` crate to refresh CPU frequency info
2. We were overwriting the values in the column with the systemwide
physical core count. Whoops!

### Before


![image](https://user-images.githubusercontent.com/26268125/222045977-2c021c92-794f-4498-b12c-e3a1bbaa7483.png)

### After


![image](https://user-images.githubusercontent.com/26268125/222046066-ff8ccd21-3c47-4d7d-8f14-e0744822cd2d.png)


## Future work

This PR does not fix https://github.com/nushell/nushell/issues/8264 ;
the `cpu_usage` column is still incorrect.
2023-03-01 21:31:05 +13:00
..
assets refactor html module (#5246) 2022-04-20 08:50:14 -05:00
proptest-regressions/format_conversions add tests, deal with pipes, newlines, tabs for to nuon (#6391) 2022-09-01 14:08:19 +02:00
src Fix CPU frequency in sys output (#8275) 2023-03-01 21:31:05 +13:00
tests Re-implement aliases (#8123) 2023-02-27 20:44:05 +13:00
build.rs Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
Cargo.toml Bump csv from 1.1.6 to 1.2.0 (#8235) 2023-02-27 19:48:51 +13:00
LICENSE Include license text in all crates (#5094) 2022-04-08 10:47:13 +02:00