/[H9]/trunk/tntnet/dynamic/critical.ecpp
ViewVC logotype

Diff of /trunk/tntnet/dynamic/critical.ecpp

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

revision 126 by torben, Sun Dec 2 20:26:43 2007 UTC revision 145 by torben, Tue Dec 4 13:29:21 2007 UTC
# Line 16  dburl; Line 16  dburl;
16    
17  <{  <{
18    
19    reply.setHeader("Refresh", "120");
20    
21  tntdb::Connection conn = tntdb::connect(dburl);  tntdb::Connection conn = tntdb::connect(dburl);
22    
23    
# Line 41  tntdb::Statement st = conn.prepare(query Line 43  tntdb::Statement st = conn.prepare(query
43    
44  std::ostream& out = reply.out();  std::ostream& out = reply.out();
45    
46    bool hasCritical = false;
47    
48  for (unsigned i=0; i<inst_res.size(); i++)  for (unsigned i=0; i<inst_res.size(); i++)
49  {  {
50          int id = inst_res[i].getInt(2);          int id = inst_res[i].getInt(2);
# Line 79  for (unsigned i=0; i<inst_res.size(); i+ Line 83  for (unsigned i=0; i<inst_res.size(); i+
83    
84                          out << "</ul>\n";                          out << "</ul>\n";
85    
86                                                    hasCritical = true;
87                  }                  }
88          }          }
89  }  }
90    
91    if (hasCritical == false)
92    {
93            out << "<i>No critical installations found</i>\n";
94    }
95    
96  }>  }>
97    
98  <&footer>  <&footer>

Legend:
Removed from v.126  
changed lines
  Added in v.145

  ViewVC Help
Powered by ViewVC 1.1.20