URI: 
       Print to stderr. - energy - measure system energy usage
   DIR Log
   DIR Files
   DIR Refs
   DIR Tags
   DIR README
   DIR LICENSE
       ---
   DIR commit 94c96ddd16d2012cdaaef649903e8fcc663a9296
   DIR parent 33cf70dcdbb4ed08ba53d121d06a3c6904db9af7
  HTML Author: Troels Henriksen <athas@sigkill.dk>
       Date:   Wed, 23 Aug 2023 12:26:11 +0200
       
       Print to stderr.
       
       Diffstat:
         M energy.c                            |       2 +-
         M man/energy.1                        |       3 ++-
       
       2 files changed, 3 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/energy.c b/energy.c
       @@ -167,6 +167,6 @@ int main(int argc, char** argv) {
          }
        
          for (int i = 0; i < num_sensors; i++) {
       -    printf("%-8s %6.2f J\n", sensors[i].name, sensors[i].usage(sensors[i].data));
       +    fprintf(stderr, "%-8s %6.2f J\n", sensors[i].name, sensors[i].usage(sensors[i].data));
          }
        }
   DIR diff --git a/man/energy.1 b/man/energy.1
       @@ -17,7 +17,8 @@
        .Nm
        Show the energy usage of a command, similarly to how
        .Xr time 1
       -shows the time usage.  The energy usage is reported in joules.
       +shows the time usage.  The energy usage is printed to stderr and
       +reported in joules.
        .Nm
        automatically attempts to use whatever sensors are available.
        Battery-based measurements are only used if the battery is