@eyedeekay
&kytv
&zzz
+R4SAS
+RN
+RN_
+dr|z3d
+orignal
+postman
+wodencafe
Arch
DeltaOreo
FreeRider
FreefallHeavens
Irc2PGuest19353
Irc2PGuest22478
Irc2PGuest48042
Irc2PGuest64530
Irc2PGuest77854
Nausicaa
Onn4l7h
Onn4|7h
Over1
Sisyphus
Sleepy
Soni
T3s|4_
Teeed
aargh3
acetone_
anon4
b3t4f4c3
bak83_
boonst
cumlord
dr4wd3
eyedeekay_bnc
hagen_
hk
khb
not_bob_afk
plap
poriori
profetikla
r3med1tz
rapidash
shiver_1
solidx66
tr
u5657
uop23ip
w8rabbit
weko_
x74a6
dr|z3d
obscuratus: around and about?
dr|z3d
we now have a build success readout in the sidebar \o/
dr|z3d
/** @since 0.9.58+ */
dr|z3d
public int getTunnelBuildSuccess() {
dr|z3d
if (_context == null)
dr|z3d
return 0;
dr|z3d
Rate explSuccess = _context.statManager().getRate("tunnel.buildExploratorySuccess").getRate(60*1000);
dr|z3d
Rate explReject = _context.statManager().getRate("tunnel.buildExploratoryReject").getRate(60*1000);
dr|z3d
Rate explExpire = _context.statManager().getRate("tunnel.buildExploratoryExpire").getRate(60*1000);
dr|z3d
Rate clientSuccess = _context.statManager().getRate("tunnel.buildClientSuccess").getRate(60*1000);
dr|z3d
Rate clientReject = _context.statManager().getRate("tunnel.buildClientReject").getRate(60*1000);
dr|z3d
Rate clientExpire = _context.statManager().getRate("tunnel.buildClientExpire").getRate(60*1000);
dr|z3d
int success = (int)explSuccess.getLastEventCount() + (int)clientSuccess.getLastEventCount();
dr|z3d
int reject = (int)explReject.getLastEventCount() + (int)clientReject.getLastEventCount();
dr|z3d
int expire = (int)explExpire.getLastEventCount() + (int)clientExpire.getLastEventCount();
dr|z3d
int percentage;
dr|z3d
if (success > 0)
dr|z3d
percentage = (100 * success) / (success + reject + expire);
dr|z3d
else
dr|z3d
percentage = 0;
dr|z3d
return percentage;
dr|z3d
}
obscuratus
dr|z3d: Neat!
dr|z3d
needs 10 minutes rate otherwise there's a chance it'll read as 0 when the router's in between builds.
obscuratus
dr|z3d: Yeah, the poll times need to be greater than the test length.
dr|z3d
the issue is the fallow period in between builds if it's 60s.
dr|z3d
so 10m should be good, since that should cover enough ground to not return 0.
dr|z3d
if you want the code to insert that value into the side, obscuratus, just holler.
dr|z3d
*sidebar
obscuratus
My eyes are old. I like the bigger graphs on the "Graphs" tab. :)
dr|z3d
with the first attempt, averaged over the minute, the results are somewhat surprising. 70-80% on a router.
dr|z3d
ah, well, you'll have to wait then, the percentage bar is next up :)
obscuratus
Yeah, I'm still curious how you do this in float or double.
dr|z3d
hmm? isn't int good enough for you?
obscuratus
Actually, yeah, it's fine. Perfect is the enemy of good enough.
dr|z3d
decimal points in percentages are fugly.
dr|z3d
you can see the method, anyways. you'd just cast to float or double if that's your thing, instead of (int).
obscuratus
It's a very coarse measurement anyways. 0-100 has more than enough accuracy.
dr|z3d
indeed.
obscuratus
All my attempt to get a float or double wouldn't compile. But I didn't try too hard since I could get what I was after with an integer.
dr|z3d
just tell yourself that you want a percentage, and you want int. repeatedly :)
dr|z3d
it's the easiest scale to understand, visually and numerically.
dr|z3d
obviously it won't work for everything, but where it fits.
zlatinb
I'm doxxing.
zlatinb
HIDDEN BY ACETONE - PERSONAL SENSITIVE DATA
zlatinb
HIDDEN BY ACETONE - PERSONAL SENSITIVE DATA
zlatinb
HIDDEN BY ACETONE - PERSONAL SENSITIVE DATA
zlatinb
Now get lost.
zlatinb
Lol.
zlatinb
eche|off: you're on your own. Hope you're happy. youtube.com/watch?v=Xz9DX_VMXdI
zlatinb
Adios fuckers.
lbt
Hm, just tested switching the web-site to German and there is like 1 paragraph (and some headings) translated, but mostly I see English still. Is this working as intended?
eche|off
if those paragraphs are not translated, thats intended
zzz
lbt, translation is not magic
lbt
I didn't assume there to be magic ;) I might have wrongly gotten the impression German translation would be "all good" and hence wondered about the main page not being translated (albeit not having been changed for a year if I see this correctly). Sry if that sounded ... off somehow
eche|off
not much people translting the main page so far
lbt
Found the strings in priority.po. Are the following worth any action?
lbt
# Copyright (C) 2021 ORGANIZATION
lbt
"Report-Msgid-Bugs-To: trac.i2p2.de\n"
lbt
And attempting to use poedit "out of the box" to edit seems catastrophic, as it rewrites the whole file according to git. Might be due to an reported error because of the first empty msgid (or so, didn't check in detail). Is any of you using "this way" to edit?
RN
oh my! LOL he forgot to say who he was doxing. MAJOR FAIL. Oh well, Mark you are safe whoever you may be. :)
RN
So is there a way to get ant to spit out the version string of what it built, or a place to find it easy? My intent it to echo (append) it into a text file.
zzz
right at the top
zzz
getReleaseNumber:
zzz
[echo] Release number: 2.1.0
zzz
[echo] API version: 0.9.57
zzz
getBuildNumber:
zzz
[echo] Build number is 3
RN
at the top of the build output?
RN
that's already out of my scrolback buffer... hmm...
zzz
yup
zzz
and then:
zzz
[echo] Building version 2.1.0-3 (revision b10cf8f698e706c27c235e42719e79b343ddd543)
zzz
or just do 'ant buildProperties' by itself
RN
bingo! that's what I was looking for. (Note: case sensative)
RN
:)