@@ -227,7 +227,7 @@ public function updateAllGroups(int $maxHeaders = 100000): void
227227 $ counter ++;
228228 }
229229
230- $ endTime = now ()->diffInSeconds ($ allTime );
230+ $ endTime = now ()->diffInSeconds ($ allTime, true );
231231 $ this ->log (
232232 'Updating completed in ' .$ endTime .Str::plural (' second ' , $ endTime ),
233233 __FUNCTION__ ,
@@ -458,7 +458,7 @@ public function updateGroup(array $groupMySQL, int $maxHeaders = 0): void
458458 }
459459
460460 if ($ this ->_echoCLI ) {
461- $ endGroup = now ()->diffInSeconds ($ startGroup );
461+ $ endGroup = now ()->diffInSeconds ($ startGroup, true );
462462 $ this ->colorCli ->primary (
463463 PHP_EOL .'Group ' .$ groupMySQL ['name ' ].' processed in ' .
464464 $ endGroup .Str::plural (' second ' , $ endGroup )
@@ -547,7 +547,7 @@ public function scan(array $groupMySQL, int $first, int $last, string $type = 'u
547547 $ this ->startCleaning = now ();
548548
549549 // End of the getting data from usenet.
550- $ this ->timeHeaders = $ this ->startCleaning ->diffInSeconds ($ this ->startLoop );
550+ $ this ->timeHeaders = $ this ->startCleaning ->diffInSeconds ($ this ->startLoop , true );
551551
552552 // Check if we got headers.
553553 $ msgCount = \count ($ headers );
@@ -636,7 +636,7 @@ public function scan(array $groupMySQL, int $first, int $last, string $type = 'u
636636 $ this ->startPR = now ();
637637
638638 // End of inserting.
639- $ this ->timeInsert = $ this ->startPR ->diffInSeconds ($ this ->startUpdate );
639+ $ this ->timeInsert = $ this ->startPR ->diffInSeconds ($ this ->startUpdate , true );
640640
641641 if ($ partRepair && \count ($ headersRepaired ) > 0 ) {
642642 $ this ->removeRepairedParts ($ headersRepaired , $ this ->groupMySQL ['id ' ]);
@@ -853,7 +853,7 @@ protected function storeHeaders(array $headers = []): void
853853 $ this ->startUpdate = now ();
854854
855855 // End of processing headers.
856- $ this ->timeCleaning = $ this ->startUpdate ->diffInSeconds ($ this ->startCleaning );
856+ $ this ->timeCleaning = $ this ->startUpdate ->diffInSeconds ($ this ->startCleaning , true );
857857 $ binariesQuery = $ binariesCheck = 'INSERT INTO binaries (id, partsize, currentparts) VALUES ' ;
858858 foreach ($ binariesUpdate as $ binaryID => $ binary ) {
859859 $ binariesQuery .= '( ' .$ binaryID .', ' .$ binary ['Size ' ].', ' .$ binary ['Parts ' ].'), ' ;
@@ -944,9 +944,9 @@ protected function outputHeaderDuration(): void
944944 $ this ->colorCli ->primaryOver (' to process collections, ' ).
945945 $ this ->colorCli ->alternateOver ($ this ->timeInsert .'s ' ).
946946 $ this ->colorCli ->primaryOver (' to insert binaries/parts, ' ).
947- $ this ->colorCli ->alternateOver ($ currentMicroTime ->diffInSeconds ($ this ->startPR ).'s ' ).
947+ $ this ->colorCli ->alternateOver ($ currentMicroTime ->diffInSeconds ($ this ->startPR , true ).'s ' ).
948948 $ this ->colorCli ->primaryOver (' for part repair, ' ).
949- $ this ->colorCli ->alternateOver ($ currentMicroTime ->diffInSeconds ($ this ->startLoop ).'s ' ).
949+ $ this ->colorCli ->alternateOver ($ currentMicroTime ->diffInSeconds ($ this ->startLoop , true ).'s ' ).
950950 $ this ->colorCli ->primary (' total. ' );
951951 }
952952 }
@@ -1236,7 +1236,7 @@ public function daytopost(int $days, array $data): string
12361236 if ($ this ->_echoCLI ) {
12371237 $ this ->colorCli ->primary (
12381238 PHP_EOL .'Found article # ' .$ wantedArticle .' which has a date of ' .date ('r ' , $ articleTime ).
1239- ', vs wanted date of ' .date ('r ' , $ goalTime ).'. Difference from goal is ' .Carbon::createFromTimestamp ($ goalTime )->diffInDays (Carbon::createFromTimestamp ($ articleTime )).'days. '
1239+ ', vs wanted date of ' .date ('r ' , $ goalTime ).'. Difference from goal is ' .Carbon::createFromTimestamp ($ goalTime )->diffInDays (Carbon::createFromTimestamp ($ articleTime ), true ).'days. '
12401240 );
12411241 }
12421242
0 commit comments