commit bb574d3f018a4718388fe33c3a791108e48240a9
Author: David Sorber <david.sorber@gmail.com>
Date:   Wed Mar 6 17:00:07 2019 -0500

    Fix bug in encode complete email of final size percentage of original
    size. Version 0.4.1.

diff --git a/software/hbkcd/hbkcd/daemon.py b/software/hbkcd/hbkcd/daemon.py
index ecf43fc..b5252e8 100755
--- a/software/hbkcd/hbkcd/daemon.py
+++ b/software/hbkcd/hbkcd/daemon.py
@@ -179,15 +179,16 @@ def main():
             if ENABLE_ENCODE_COMPLETE_EMAILS:
                 subject = 'hbkcd Encode Complete'
                 msg = '{:s}\n\nEncoded: {:s}\nInitial Size: {:s}\n\n'\
-                      'Output: {:s}\nFinal Size: {:s} ({:.2f}%)\n\n'\                      
+                      'Output: {:s}\nFinal Size: {:s} ({:.2f}%)\n\n'\
                       'Duration: {:s}\nQueued time: {:s}\nEncode log: {:s}\n'
                 
                 ratio = (item.final_size / (item.initial_size * 1.0))
+                percent = ratio * 100
                 send_email(subject, msg.format(status, item.path, 
                                                pp_filesize(item.initial_size),
                                                item.output_file, 
                                                pp_filesize(item.final_size), 
-                                               ratio, elapsed_str, queued_str, 
+                                               percent, elapsed_str, queued_str, 
                                                log_path))
                 logging.debug('Sent encode complete email')
             
diff --git a/software/hbkcd/setup.py b/software/hbkcd/setup.py
index 9bea603..2a0292f 100755
--- a/software/hbkcd/setup.py
+++ b/software/hbkcd/setup.py
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
 
 setup(
     name = 'hbkcd',
-    version = '0.4.0',
+    version = '0.4.1',
     description = 'HandBrake Control Daemon',
     packages = find_packages(),
     python_requires = '>=3.6.0',
