From a466147461556b68e702368caee96c785d39b9d4 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Wed, 1 Feb 2017 06:59:42 +1100 Subject: Minor tweak of bulk exclusion logging --- notes.txt | 3 +-- src/Election.hs | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/notes.txt b/notes.txt index 14da633..76e44a1 100644 --- a/notes.txt +++ b/notes.txt @@ -20,9 +20,8 @@ group votes by uniqueness to reduce memory requirements, speed things up, and ac make the goddamn results correct are they correct now? it's a bit murky with how the AEC records transfers in DOP logs -does the AEC use floats or exact ratios for transfer values? +does the AEC use truncated values or exact ratios for transfer values? does the AEC check for candidates having quota when transfers are only partially done? -why do the paper amounts go negative in AEC counts sometimes? place candidate IDs and party designations into different fields in logfiles diff --git a/src/Election.hs b/src/Election.hs index 8a0e4d0..f3b504e 100644 --- a/src/Election.hs +++ b/src/Election.hs @@ -363,7 +363,8 @@ excludeCandidates e = do then if (n > 0) then do MIO.liftIO $ Con.when (n > 1) $ do - let logmsg = "Bulk exclusion at logfile #" ++ show (getNextLogNum e) + let logmsg = "Bulk exclusion of " ++ show n ++ + " candidates at logfile #" ++ show (getNextLogNum e) IO.appendFile (getMainLog e) (logmsg ++ "\n") Con.when (isVerbose e) (IO.hPutStrLn IO.stderr logmsg) ET.left e -- cgit