ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/reports/DBReporter/CpuUserReport.java
(Generate patch)

Comparing projects/cms/source/reports/DBReporter/CpuUserReport.java (file contents):
Revision 1.4 by pjm2, Thu Dec 14 15:01:22 2000 UTC vs.
Revision 1.6 by pjm2, Sat Jan 6 19:39:23 2001 UTC

# Line 24 | Line 24 | public class CpuUserReport extends Report {
24          _reportField = "packet.cpu.user";
25          
26          // Use this select query.
27 <        _sql = "SELECT * FROM packet_test pkt, parameter_test param WHERE pkt.id=param.packet_id AND pkt.machine_name='"+ _machine_name+"' AND pkt.receipt_date >= "+_startDate+" AND pkt.receipt_date <= "+_endDate+" AND param.name='"+_reportField+"' ORDER BY pkt.receipt_date;";
27 >        _sql = "SELECT receipt_date, value FROM packet_test pkt, parameter_test param WHERE pkt.id=param.packet_id AND pkt.machine_name='"+ _machine_name+"' AND pkt.receipt_date >= "+_startDate+" AND pkt.receipt_date <= "+_endDate+" AND param.name='"+_reportField+"' ORDER BY pkt.receipt_date;";
28      
29      }
30          
31   //---PUBLIC METHODS---
32  
33      // Override the superclass here to obtain special functionality.
34 <    //public void createReport(){
34 >    public void createReport(){
35  
36 <        // Activate special funtionality.
37 <        
36 >        // Perform special functions here.
37 >        // .....
38  
39          // Now carry on with the normal method for creating reports.
40 <      //  super.createReport();
41 <    //}
40 >        super.createReport();
41 >    }
42  
43   //---PRIVATE METHODS---
44  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines