Skip to content

Commit

Permalink
Merge pull request #147 from nlesc-recruit/144-update-docs
Browse files Browse the repository at this point in the history
Fix typo in docs
  • Loading branch information
loostrum authored Oct 23, 2023
2 parents 32d1c6d + 5206763 commit 998cece
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/USERGUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ exp. time: 3.2768 s, measured: 3.27701 s, 93.377 J, 28.4946 W
## Monitor power use of an existing application
Adapting an application to use the library is not obligatory; the `psrun` utility can monitor the power use of a device during the execution of an application that does not use the library. Run `psrun -h` for more options
```
pstest <application>
psrun <application>
< application output >
5.02273 s, 144.12 J, 28.6935 W
```
Expand Down Expand Up @@ -128,4 +128,4 @@ start = ps.read()
stop = ps.read()

print(f'{ps.Joules(start, stop):.2f}J, {ps.seconds(start, stop):.2f}s, {ps.Watt(start, stop):.2f}W')
```
```
2 changes: 1 addition & 1 deletion host/src/psconfig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ void print() {

void usage(char *argv[]) {
std::cerr << "usage: " << argv[0] << " [-h] [-d device] [-s sensor] [-t type] "
"[-a | -v volt] [-n sensitivity] [-o on/off] [-p] [-l]" << std::endl;
"[-m name] [-a | -v volt] [-n sensitivity] [-o on/off] [-p] [-l]" << std::endl;
std::cerr << "-h prints this help" << std::endl;
std::cerr << "-d selects the device (default: /dev/ttyACM0)" << std::endl;
std::cerr << "-s selects the sensor (0-" << PowerSensor3::MAX_SENSORS << ")" << std::endl;
Expand Down

0 comments on commit 998cece

Please sign in to comment.