ResultSet generatedKeys = null;
try {
con = getConnection();
saveMonitorStmt = con.prepareStatement("INSERT INTO " + MONITOR_TABLE
+ " (process_usage, os_usage, free_ram, free_ram_pct, os_free_ram, os_free_ram_pct, load_avg)"
<BUG>+ " VALUES (?, ?, ?, ?, ?, ?, ?, ?)", Statement.RETURN_GENERATED_KEYS);
saveMonitorStmt.setFloat(1, procUsage);</BUG>
saveMonitorStmt.setFloat(2, osUsage);
saveMonitorStmt.setInt(3, freeRam);
saveMonitorStmt.setFloat(4, freeRamPct);

ResultSet generatedKeys = null;
try {
con = getConnection();
saveMonitorStmt = con.prepareStatement("INSERT INTO " + MONITOR_TABLE
+ " (process_usage, os_usage, free_ram, free_ram_pct, os_free_ram, os_free_ram_pct, load_avg)"
+ " VALUES (?, ?, ?, ?, ?, ?, ?)", Statement.RETURN_GENERATED_KEYS);
saveMonitorStmt.setFloat(1, procUsage);
saveMonitorStmt.setFloat(2, osUsage);
saveMonitorStmt.setInt(3, freeRam);
saveMonitorStmt.setFloat(4, freeRamPct);
