]> andersk Git - moira.git/commitdiff
increase machine hash_table size; only retrieve active machines
authormar <mar>
Tue, 23 Nov 1993 17:32:42 +0000 (17:32 +0000)
committermar <mar>
Tue, 23 Nov 1993 17:32:42 +0000 (17:32 +0000)
gen/mailhub.dc

index e5f420d4f483cb0fc6f4d22afca9b7de9e7b62e9..72efcfc0b81fa33f9a7a8d26b598476dcb5280e6 100644 (file)
@@ -157,11 +157,12 @@ get_info()
     EXEC SQL SELECT modtime INTO :buf FROM list WHERE list_id = 0;
 
     cnt = 0;
-    machines = create_hash(10);
+    machines = create_hash(1000);
 
     EXEC SQL DECLARE m_cursor CURSOR FOR
       SELECT mach_id, name
       FROM machine
+      WHERE status=1
       ORDER BY mach_id;
     EXEC SQL OPEN m_cursor;
     while (1) {
This page took 0.285472 seconds and 5 git commands to generate.