/[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 128 by torben, Sun Dec 2 20:26:43 2007 UTC revision 129 by torben, Mon Dec 3 07:56:35 2007 UTC
# Line 41  tntdb::Statement st = conn.prepare(query Line 41  tntdb::Statement st = conn.prepare(query
41    
42  std::ostream& out = reply.out();  std::ostream& out = reply.out();
43    
44    bool hasCritical = false;
45    
46  for (unsigned i=0; i<inst_res.size(); i++)  for (unsigned i=0; i<inst_res.size(); i++)
47  {  {
48          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 81  for (unsigned i=0; i<inst_res.size(); i+
81    
82                          out << "</ul>\n";                          out << "</ul>\n";
83    
84                                                    hasCritical = true;
85                  }                  }
86          }          }
87  }  }
88    
89    if (hasCritical == false)
90    {
91            out << "<i>No critical installations found</i>\n";
92    }
93    
94  }>  }>
95    
96  <&footer>  <&footer>

Legend:
Removed from v.128  
changed lines
  Added in v.129

  ViewVC Help
Powered by ViewVC 1.1.20