Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88caf4c5 authored by theronakpatel's avatar theronakpatel
Browse files

processed changes

parent 81148dd7
Loading
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -125,11 +125,14 @@ class SyncMissingUsersToCommon extends Command {
		$totalUsers = count($allUsers);
		$output->writeln(sprintf('<info>Processing all users from NextCloud (total: %d)</info>', $totalUsers));

		$lastProcessed = 0;
		foreach ($allUsers as $user) {
			$before = $stats['processed'];
			$this->processSingleUser($user->getUID(), $ipAddress, $isDryRun, $output, $stats);
			if ($stats['processed'] % 100 === 0) {
			if ($stats['processed'] > 0 && $stats['processed'] % 100 === 0 && $stats['processed'] !== $lastProcessed) {
				$output->writeln(sprintf('<info>Progress: %d processed, %d success, %d errors</info>',
					$stats['processed'], $stats['success'], $stats['errors']));
				$lastProcessed = $stats['processed'];
			}
		}
	}