/[monit]/monit/util.c
ViewVC logotype

Diff of /monit/util.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.81 by martinp, Wed Aug 27 21:53:13 2003 UTC revision 1.82 by hauk, Sun Aug 31 20:05:51 2003 UTC
# Line 536  void printservice(Service_T s) { Line 536  void printservice(Service_T s) {
536    printf(" %-20s = %s\n", "Group", is_str_defined(s->group));    printf(" %-20s = %s\n", "Group", is_str_defined(s->group));
537    if(s->type == TYPE_PROCESS)    if(s->type == TYPE_PROCESS)
538      printf(" %-20s = %s\n", "Pid file", s->path);      printf(" %-20s = %s\n", "Pid file", s->path);
539    else    else if(s->type != TYPE_REMOTE)
540      printf(" %-20s = %s\n", "Path", s->path);      printf(" %-20s = %s\n", "Path", s->path);
541    printf(" %-20s = %s\n", "Monitoring mode", modenames[s->mode]);    printf(" %-20s = %s\n", "Monitoring mode", modenames[s->mode]);
542    if(s->start) {    if(s->start) {
# Line 896  char *get_RFC822date(long *date) { Line 896  char *get_RFC822date(long *date) {
896    
897    char D[STRLEN];    char D[STRLEN];
898    struct tm *tm_now;    struct tm *tm_now;
899    time_t now= (date && date>0)?*date:time(NULL);    time_t now= (date && *date>0)?*date:time(NULL);
900    
901    tm_now= localtime(&now);    tm_now= localtime(&now);
902    

Legend:
Removed from v.1.81  
changed lines
  Added in v.1.82

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26