You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Base10Mega For networking throughput in Mbps, (and only for networking), we divide by 1000*1000 (not 1024 * 1024) because
40
+
// networking is traditionally done in base 10 units (not base 2).
41
+
// E.g. "gigabit ethernet" means 10^9 bits/sec, not 2^30. So by using base 10 units
42
+
// we give the best correspondence to the sizing of the user's network pipes.
43
+
// See https://networkengineering.stackexchange.com/questions/3628/iec-or-si-units-binary-prefixes-used-for-network-measurement
44
+
// NOTE that for everything else in the app (e.g. sizes of files) we use the base 2 units (i.e. 1024 * 1024) because
45
+
// for RAM and disk file sizes, it is conventional to use the power-of-two-based units.
46
+
Base10Mega=1000*1000
47
+
)
48
+
49
+
// It's not pretty that this one is read directly by credential util.
50
+
// But doing otherwise required us passing it around in many places, even though really
51
+
// it can be thought of as an "ambient" property. That's the (weak?) justification for implementing
52
+
// it as a global
53
+
varTrustedSuffixesstring
54
+
38
55
typeClientstruct {
39
56
CurrentJobID common.JobID// TODO (gapra): In future this should only be set when there is a current job running. On complete, this should be cleared. It can also behave as something we can check to see if a current job is running
40
57
oauthTokenManager*common.UserOAuthTokenManager// OAuth token manager for the current user, used for authentication
0 commit comments