Fix time_duration_long / xmrchain.net onion
This commit is contained in:
parent
1714e701de
commit
d07987b750
|
@ -58,12 +58,11 @@ var existingUrl = map[siteKey]urlEntry{
|
|||
Onion: "http://gitshn5x75sgs53q3pxwjva2z65ns5vadx3h7u3hrdssbxsova66cxid.onion",
|
||||
},
|
||||
SiteKeyXmrChainNet: {
|
||||
Host: "https://xmrchain.net",
|
||||
Onion: "http://gitshn5x75sgs53q3pxwjva2z65ns5vadx3h7u3hrdssbxsova66cxid.onion",
|
||||
Host: "https://xmrchain.net",
|
||||
},
|
||||
SiteKeySethForPrivacy: {
|
||||
Host: "https://sethforprivacy.com",
|
||||
//Expired Onion: "http://sfprivg7qec6tdle7u6hdepzjibin6fn3ivm6qlwytr235rh5vc6bfqd.onion",
|
||||
Host: "https://sethforprivacy.com",
|
||||
Onion: "http://sfprivg7qec6tdle7u6hdepzjibin6fn3ivm6qlwytr235rh5vc6bfqd.onion",
|
||||
},
|
||||
SiteKeyXmrVsBeast: {
|
||||
Host: "https://xmrvsbeast.com",
|
||||
|
|
|
@ -74,7 +74,7 @@ func date_diff_short[T int64 | uint64 | int | float64](v T) string {
|
|||
|
||||
func time_duration_long[T int64 | uint64 | int | float64](v T) string {
|
||||
diff := time.Second * time.Duration(v)
|
||||
diff += time.Microsecond * time.Duration((float64(uint64(v))-float64(v))*1000000)
|
||||
diff += time.Microsecond * time.Duration((float64(v)-float64(int64(v)))*1000000)
|
||||
days := int64(diff.Hours() / 24)
|
||||
hours := int64(diff.Hours()) % 24
|
||||
minutes := int64(diff.Minutes()) % 60
|
||||
|
@ -144,7 +144,7 @@ func found_block_effort(b, previous *index.FoundBlock) float64 {
|
|||
var effortColorGradient = colorgrad.RdYlBu()
|
||||
|
||||
const effortRangeStart = 0.15
|
||||
const effortRangeEnd = 0.8
|
||||
const effortRangeEnd = 0.85
|
||||
|
||||
func effort_color(effort float64) string {
|
||||
probability := utils.ProbabilityEffort(effort)
|
||||
|
|
Loading…
Reference in a new issue