We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tbreeding/jira-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
calculateTotalActiveHours.ts•596 B
/**
* Total Active Hours Calculation Module
*
* This module provides functionality for calculating the total number
* of hours spent in active work across all work periods.
*/
import type { ActiveWorkPeriod } from '../../types/continuityAnalysis.types'
/**
* Calculates total active hours from active work periods
*
* @param activeWorkPeriods - Array of active work periods
* @returns Total active hours
*/
export function calculateTotalActiveHours(activeWorkPeriods: ActiveWorkPeriod[]): number {
return activeWorkPeriods.reduce((total, period) => total + period.durationHours, 0)
}