fix execution minutes meter using wrong metric (#1967)
The monthly execution minutes meter was using the wrong metric, `crawlExecSeconds` instead of `monthlyExecSeconds`. Since the meter is showing minutes used out of the monthly quota, it should be using `monthlyExecSeconds`. This is a quick fix, however, this system may need another pass at some point. --------- Co-authored-by: sua yoo <sua@suayoo.com>
This commit is contained in:
		
							parent
							
								
									24c8963dba
								
							
						
					
					
						commit
						b288cd81cc
					
				| @ -395,8 +395,8 @@ export class Dashboard extends LiteElement { | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     let usageSecondsAllTypes = 0; |     let usageSecondsAllTypes = 0; | ||||||
|     if (this.org.crawlExecSeconds) { |     if (this.org.monthlyExecSeconds) { | ||||||
|       const actualUsage = this.org.crawlExecSeconds[currentPeriod]; |       const actualUsage = this.org.monthlyExecSeconds[currentPeriod]; | ||||||
|       if (actualUsage) { |       if (actualUsage) { | ||||||
|         usageSecondsAllTypes = actualUsage; |         usageSecondsAllTypes = actualUsage; | ||||||
|       } |       } | ||||||
|  | |||||||
| @ -39,7 +39,9 @@ export type OrgData = { | |||||||
|   bytesStoredUploads: number; |   bytesStoredUploads: number; | ||||||
|   bytesStoredProfiles: number; |   bytesStoredProfiles: number; | ||||||
|   usage: { [key: YearMonth]: number } | null; |   usage: { [key: YearMonth]: number } | null; | ||||||
|  |   /* Actual total time used, including time to stop the crawl, gifted, and extra time */ | ||||||
|   crawlExecSeconds?: { [key: YearMonth]: number }; |   crawlExecSeconds?: { [key: YearMonth]: number }; | ||||||
|  |   /* Total time within the monthly time quota */ | ||||||
|   monthlyExecSeconds?: { [key: YearMonth]: number }; |   monthlyExecSeconds?: { [key: YearMonth]: number }; | ||||||
|   extraExecSeconds?: { [key: YearMonth]: number }; |   extraExecSeconds?: { [key: YearMonth]: number }; | ||||||
|   giftedExecSeconds?: { [key: YearMonth]: number }; |   giftedExecSeconds?: { [key: YearMonth]: number }; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user