[FHR] How is the time open computed

VERIFIED WORKSFORME

Status

VERIFIED WORKSFORME
6 years ago
2 months ago

People

(Reporter: joy, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
How is

a) vital stats --> time open (mine = 3072 mins)
b) this month --> time open (mine=28 mins)

computed? 
None of the ways i computed 

- summing org.mozilla.appSessions.previous$cleanActiveTicks*5/60 mins
- summing org.mozilla.appSessions.previous$cleanTotalTime/60 mins

But none match. Moreover, I live in San Francisco and the time is 10:20 pm, March 31st. However, i have April 1st in my days fields(no jokes!). Does this mean "This month" is April?
(Reporter)

Updated

6 years ago
No longer depends on: 856315
(In reply to Saptarshi Guha from comment #0)
> How is
> 
> a) vital stats --> time open (mine = 3072 mins)
> b) this month --> time open (mine=28 mins)
> 
> computed? 
> None of the ways i computed 
> 
> - summing org.mozilla.appSessions.previous$cleanActiveTicks*5/60 mins
> - summing org.mozilla.appSessions.previous$cleanTotalTime/60 mins
> 

The calculation is in this function:
https://github.com/mozilla/fhr-jelly/blob/master/js/data.js#L31

As you can see it's the cleanTotalTime + abortedTotalTime for the period.


> But none match. Moreover, I live in San Francisco and the time is 10:20 pm,
> March 31st. However, i have April 1st in my days fields(no jokes!). Does
> this mean "This month" is April?

I would guess the FHR data service uses UTC.  deinspanjer may be able to comment further.
Yes, all dates in FHR data are UTC.
Can this be closed?
Flags: needinfo?(sguha)
(Reporter)

Comment 4

6 years ago
Yes, absolutely, thanks
Flags: needinfo?(sguha)
Bumping to worksforme per comment 4 - thanks Saptarshi
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → WORKSFORME
QA verified wfm per comment 2 and comment 4.
Status: RESOLVED → VERIFIED
Component: General → about:healthreport
Product: Webtools → Firefox Health Report

Updated

2 months ago
Product: Firefox Health Report → Firefox Health Report Graveyard
You need to log in before you can comment on or make changes to this bug.