MCPcopy Create free account
hub / github.com/Facets-cloud/flow / DefaultConstants

Function DefaultConstants

internal/stats/model.go:18–24  ·  view source on GitHub ↗

DefaultConstants are the shipped defaults.

()

Source from the content-addressed store, hash-verified

16
17// DefaultConstants are the shipped defaults.
18func DefaultConstants() Constants {
19 return Constants{
20 MinutesPerUnattendedRun: 20,
21 MinutesPerContextSwitch: 5,
22 DollarPerHour: 100,
23 }
24}
25
26// LoadConstants reads ~/.flow/stats.json. A missing file yields defaults
27// silently; a corrupt file yields defaults with a stderr notice. Any field

Callers 7

LoadConstantsFunction · 0.85
TestBuildStatsEndToEndFunction · 0.85
TestBuildStatsWindowedFunction · 0.85
TestComputeSavingsFunction · 0.85
TestLoadConstantsCorruptFunction · 0.85

Calls

no outgoing calls

Tested by 6

TestBuildStatsEndToEndFunction · 0.68
TestBuildStatsWindowedFunction · 0.68
TestComputeSavingsFunction · 0.68
TestLoadConstantsCorruptFunction · 0.68