Browse Source

updated todo list

Alexander Brakowski 10 years ago
parent
commit
695b0a6b23
2 changed files with 5 additions and 3 deletions
  1. 2 1
      TODO
  2. 3 2
      src/de/tudarmstadt/informatik/hostage/logging/UglyDbHelper.java

+ 2 - 1
TODO

@@ -6,4 +6,5 @@
 ! [Record Overview] Display a message when there are no records (because of filtering)
 ! [Overview]	Correct icon for active profile
 ! [Profile Manager] Use new icon for assorted profiles
-! [Honey Service] Use nicer icon
+! [Honey Service] Use nicer icon
+! [Statistics]  Numbers shouldn't be float numbers

+ 3 - 2
src/de/tudarmstadt/informatik/hostage/logging/UglyDbHelper.java

@@ -341,8 +341,9 @@ public class UglyDbHelper extends SQLiteOpenHelper {
 	}
 
 	public int numBssidSeen(String BSSID){
-		String countQuery = "SELECT  COUNT(*) FROM " + TABLE_BSSIDS + " WHERE "
-				+ KEY_BSSID + " = " + "'" + BSSID + "'";
+		String countQuery = "SELECT  COUNT(*) FROM " + TABLE_ATTACK_INFO
+				+ " JOIN " + TABLE_BSSIDS + " USING " + "(" + KEY_BSSID + ")" + " WHERE " + TABLE_BSSIDS+ "."+ KEY_BSSID + " = "
+				+ "'" + BSSID + "'";
 		SQLiteDatabase db = this.getReadableDatabase();
 		Cursor cursor = db.rawQuery(countQuery, null);
 		cursor.moveToFirst();