Skip to content

Commit

Permalink
feat: convert ms to seconds in crash running time (#239)
Browse files Browse the repository at this point in the history
* feat: convert ms to seconds in crash running time

* Update CHANGELOG.md

* Update CHANGELOG.md

---------

Co-authored-by: Artūrs Kadiķis <[email protected]>
  • Loading branch information
arifBurakDemiray and ArtursKadikis authored Feb 2, 2024
1 parent c908a57 commit 33ae1ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* Fixed a bug where setting custom user properties would not work.
* Fixed a bug where setting organization of the user would not work.
* Fixed a bug where sending a user profile picture with checksum was not possible.
* Fixed a bug where running time calculation was sent as a milliseconds but should have been in seconds.

* Deprecated "Countly::backendMode()" call, use "Countly::backendM" instead via "instance()" call.
* Deprecated "Usage::addLocation(double, double)" call, use "Countly::location::setLocation" instead via "instance()" call.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ protected void recordExceptionInternal(Throwable t, boolean handled, Map<String,

public CrashImpl onCrash(InternalConfig config, CrashImpl crash) {
long running = started == 0 ? 0 : TimeUtils.nsToMs(System.nanoTime() - started);
crash.putMetrics(running);
crash.putMetrics(running / TimeUtils.MS_IN_SECOND);

if (!crash.getData().has("_os")) {
L.w("[ModuleCrash] onCrash, While recording an exception 'OS name' was either null or empty");
Expand Down

0 comments on commit 33ae1ef

Please sign in to comment.