~ubuntu-branches/ubuntu/trusty/rstatd/trusty

« back to all changes in this revision

Viewing changes to rsysinfo.c

  • Committer: Bazaar Package Importer
  • Author(s): Herbert Xu
  • Date: 2001-08-10 07:30:19 UTC
  • Revision ID: james.westby@ubuntu.com-20010810073019-r5snxn85ug5zb39f
Tags: 3.03-7
Added libc6-dev to build-time dependency for rpcgen (closes: #108179).

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <stdio.h>
29
29
#include <rpc/rpc.h>
30
30
#include <sys/socket.h>
31
 
#include <sys/time.h>
 
31
#include <time.h>
32
32
#include <netdb.h>
33
33
#include "rstat.h"
34
34
 
88
88
 
89
89
 
90
90
        printf("System Information for: %s\n",host);
91
 
        printf("uptime: %s%sload averge: %.2f %.2f %.2f\n",
 
91
        printf("uptime: %s%sload average: %.2f %.2f %.2f\n",
92
92
                days_buf, hours_buf, host_stat->avenrun[0]/256.0,
93
93
                host_stat->avenrun[1]/256.0, host_stat->avenrun[2]/256.0);
94
94