/[monit]/monit/http/cervlet.c
ViewVC logotype

Diff of /monit/http/cervlet.c

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

revision 1.65 by hauk, Wed Jul 2 21:02:07 2003 UTC revision 1.66 by martinp, Sun Jul 6 18:29:38 2003 UTC
# Line 49  Line 49 
49  #include "event.h"  #include "event.h"
50  #include "alert.h"  #include "alert.h"
51  #include "monit_process.h"  #include "monit_process.h"
52    #include "monit_device.h"
53    
54  #define ACTION(c) !strncasecmp(req->url, c, sizeof(c))  #define ACTION(c) !strncasecmp(req->url, c, sizeof(c))
55    
# Line 635  static void print_status(Service_T s, Ht Line 636  static void print_status(Service_T s, Ht
636      break;      break;
637    
638      case TASK_DEVICE:      case TASK_DEVICE:
639        if(get_fsusage(s->path, s->devinfo)) {        if(DeviceInfo_Usage(s->devinfo, s->path)) {
640    
641          if(s->devinfo->f_files > 0) {          if(s->devinfo->f_files > 0) {
642    
# Line 987  static void do_home_device(HttpRequest r Line 988  static void do_home_device(HttpRequest r
988    
989      }      }
990    
991      if(!get_fsusage(s->path, s->devinfo)) {      if(!DeviceInfo_Usage(s->devinfo, s->path)) {
992    
993        out_print(res,        out_print(res,
994          "<tr %s>"          "<tr %s>"
# Line 1191  static void do_home_directory(HttpReques Line 1192  static void do_home_directory(HttpReques
1192    
1193  static void do_task_device(HttpRequest req, HttpResponse res, Service_T s) {  static void do_task_device(HttpRequest req, HttpResponse res, Service_T s) {
1194    
1195    int state= get_fsusage(s->path, s->devinfo);    int state= DeviceInfo_Usage(s->devinfo, s->path);
1196    
1197    out_print(res,    out_print(res,
1198      "<p><br><h3>Device status</h3><br>");      "<p><br><h3>Device status</h3><br>");

Legend:
Removed from v.1.65  
changed lines
  Added in v.1.66

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