diff --git a/VERSIONS_HOTLINE/81124 b/VERSIONS_HOTLINE/81124
new file mode 100644
index 0000000000000000000000000000000000000000..45f3dba511fc5f910b9fcb615724886fbaf64b02
--- /dev/null
+++ b/VERSIONS_HOTLINE/81124
@@ -0,0 +1 @@
+ - ticket #81124 : Cosmogramme : correction de la précision du calcul des tailles minimum des fichiers à intégrer
\ No newline at end of file
diff --git a/library/Class/Cosmogramme/Integration/PhasePrepareIntegrations.php b/library/Class/Cosmogramme/Integration/PhasePrepareIntegrations.php
index a82d99b7e37acfc32250ce1879f708670a225a15..602a1eef9ba61f9fac8ba6d788362510e298fd9a 100644
--- a/library/Class/Cosmogramme/Integration/PhasePrepareIntegrations.php
+++ b/library/Class/Cosmogramme/Integration/PhasePrepareIntegrations.php
@@ -188,19 +188,17 @@ class Class_Cosmogramme_Integration_PhasePrepareIntegrations extends Class_Cosmo
       return false;
 
     $file_type = $profil->getTypeFichier();
-    $minsize = $majauto->getTailleMinImportTotal();
+    $minsize = $majauto->getTailleMinImportTotal() * 1024 * 1024;
     $type_operation = $majauto->getTypeOperation();
 
     if ($minsize > 0 && $file_type == 0 && $type_operation == 2) {
-      $file_size = filesize($file);
-      if ($file_size > 0)
-        $file_size = (int) (($file_size / 1024) / 1024);
-
+      $file_size = $this->getFileSystem()->filesize($file);
       if ($file_size < $minsize) {
         $this->_log
           ->log(sprintf('<span class="rouge">%s</span></td>',
-                        $this->_('Le fichier est trop petit : %s mo -> taille minimum attendue : %s mo',
-                                 $file_size, $minsize)));
+                        $this->_('Le fichier est trop petit : %s o -> taille minimum attendue : %s o',
+                                 $file_size,
+                                 $minsize)));
         return false;
       }
     }
diff --git a/tests/library/Class/Cosmogramme/Integration/PhasePrepareIntegrationsTest.php b/tests/library/Class/Cosmogramme/Integration/PhasePrepareIntegrationsTest.php
index c6dac7b3f683e5732d165f280dff6457abfce45c..c6192da2af56313d99ec40694e3b79711b183eeb 100644
--- a/tests/library/Class/Cosmogramme/Integration/PhasePrepareIntegrationsTest.php
+++ b/tests/library/Class/Cosmogramme/Integration/PhasePrepareIntegrationsTest.php
@@ -32,6 +32,18 @@ abstract class PhasePrepareIntegrationsWithOAITestCase
                         ->with ('ftp/my-library.net/transferts/foo/mylibrarytotal.txt')
                         ->answers(true)
 
+                        ->whenCalled('filesize')
+                        ->with ('ftp/my-library.net/transferts/foo/mylibrarytotal.txt')
+                        ->answers(11000000)
+
+                        ->whenCalled('is_file')
+                        ->with ('ftp/my-library.net/transferts/foo/toosmall.txt')
+                        ->answers(true)
+
+                        ->whenCalled('filesize')
+                        ->with ('ftp/my-library.net/transferts/foo/toosmall.txt')
+                        ->answers(1000000)
+
                         ->whenCalled('is_file')
                         ->with ('ftp/my-library.net/transferts/foo/20180517mylibraryincr.txt')
                         ->answers(true)
@@ -135,7 +147,7 @@ abstract class PhasePrepareIntegrationsWithOAITestCase
                                         'type_doc' => 0,
                                         'nom_fichier' => 'foo/mylibrarytotal.txt',
                                         'rang' => 100,
-                                        'taille_min_import_total' => 0]);
+                                        'taille_min_import_total' => 10]);
 
     $this->fixture('Class_IntMajAuto', ['id' => 101,
                                         'id_prog' => 101,
@@ -159,6 +171,20 @@ abstract class PhasePrepareIntegrationsWithOAITestCase
                                         'rang' => 102,
                                         'taille_min_import_total' => 0]);
 
+
+
+    $this->fixture('Class_IntMajAuto', ['id' => 104,
+                                        'id_prog' => 104,
+                                        'id_bib' => 2,
+                                        'libelle' => 'Notices - too small',
+                                        'profil' => 102,
+                                        'type_operation' => 2,
+                                        'type_doc' => 0,
+                                        'nom_fichier' => 'foo/toosmall.txt',
+                                        'rang' => 100,
+                                        'taille_min_import_total' => 10]);
+
+
     $this->fixture('Class_Cosmogramme_Integration',
                    ['id' => 1,
                     'id_bib' => 2,
@@ -249,6 +275,12 @@ class PhasePrepareIntegrationsWithOAITest extends PhasePrepareIntegrationsWithOA
   }
 
 
+  /** @test */
+  public function logShouldContainsFileTooSmall() {
+    $this->assertLogContains('<td class="blank">foo/toosmall.txt</td><td class="blank"> <span class="rouge">Le fichier est trop petit : 1000000 o -> taille minimum attendue : 10485760 o');
+  }
+
+
   /**
    * @expectedException Class_Cosmogramme_Integration_PhasePrepareIntegrationsException
    * @expectedExceptionMessage La variable ftp_path n'est pas définie