diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2022-09-27 14:48:50 +0300 |
---|---|---|
committer | Hannah von Reth <hannah.vonreth@owncloud.com> | 2022-09-27 14:53:53 +0300 |
commit | 15463a18f47b0b0aceec8e02e0f340183acca624 (patch) | |
tree | f790d8fec3d26c653501afb45b97dc01ee3a45c0 | |
parent | 92846d216a4def803aa72a2f3db6f72f784f8d96 (diff) |
Reduce 'std::chrono::duration' in dbug log to 'duration'work/log_duration
-rw-r--r-- | .github/workflows/.craft.ps1 | 2 | ||||
-rw-r--r-- | src/common/utility.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/.craft.ps1 b/.github/workflows/.craft.ps1 index 14c85971a..0c09bde96 100644 --- a/.github/workflows/.craft.ps1 +++ b/.github/workflows/.craft.ps1 @@ -16,4 +16,4 @@ Write-Host "Exec: ${python} ${command}" & $python @command if ($LASTEXITCODE -ne 0) { exit 1 -}
\ No newline at end of file +} diff --git a/src/common/utility.cpp b/src/common/utility.cpp index 7f9d486b6..09e63aaa7 100644 --- a/src/common/utility.cpp +++ b/src/common/utility.cpp @@ -630,7 +630,7 @@ QDebug &operator<<(QDebug &debug, nanoseconds in) const auto min = duration_cast<minutes>(in -= h); const auto s = duration_cast<seconds>(in -= min); const auto ms = duration_cast<milliseconds>(in -= s); - return debug << "std::chrono::duration(" + return debug << "duration(" << h.count() << "h, " << min.count() << "min, " << s.count() << "s, " |