File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -815,7 +815,7 @@ def bcat(fname, fallback=_DEFAULT):
815815
816816
817817def bytes2human (n , format = "%(value).1f%(symbol)s" ):
818- """Used by various scripts. See: http ://goo.gl/zeJZl .
818+ """Used by various scripts. See: https ://code.activestate.com/recipes/578019-bytes-to-human-human-to-bytes-converter/?in=user-4178764 .
819819
820820 >>> bytes2human(10000)
821821 '9.8K'
Original file line number Diff line number Diff line change @@ -1984,7 +1984,7 @@ def memory_full_info(self):
19841984 def memory_maps (self ):
19851985 """Return process's mapped memory regions as a list of named
19861986 tuples. Fields are explained in 'man proc'; here is an updated
1987- (Apr 2012) version: http ://goo.gl/fmebo .
1987+ (Apr 2012) version: https ://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/filesystems/proc.txt?id=b76437579d1344b612cf1851ae610c636cec7db0 .
19881988
19891989 /proc/{PID}/smaps does not exist on kernels < 2.6.14 or if
19901990 CONFIG_MMU kernel configuration option is not enabled.
Original file line number Diff line number Diff line change @@ -537,7 +537,7 @@ def cwd(self):
537537 # /proc/PID/path/cwd may not be resolved by readlink() even if
538538 # it exists (ls shows it). If that's the case and the process
539539 # is still alive return None (we can return None also on BSD).
540- # Reference: http ://goo.gl/55XgO
540+ # Reference: https ://groups.google.com/g/comp.unix.solaris/c/tcqvhTNFCAs
541541 procfs_path = self ._procfs_path
542542 try :
543543 return os .readlink (f"{ procfs_path } /{ self .pid } /path/cwd" )
Original file line number Diff line number Diff line change @@ -763,7 +763,7 @@ psutil_proc_threads(PyObject *self, PyObject *args) {
763763/*
764764 * Return process open files as a Python tuple.
765765 * References:
766- * - lsof source code: http ://goo.gl/SYW79 and http://goo.gl/m78fd
766+ * - lsof source code: https ://github.com/apple-opensource/lsof/blob/28/lsof/dialects/darwin/libproc/dproc.c#L342
767767 * - /usr/include/sys/proc_info.h
768768 */
769769PyObject *
@@ -854,7 +854,7 @@ psutil_proc_open_files(PyObject *self, PyObject *args) {
854854 * Return process TCP and UDP connections as a list of tuples.
855855 * Raises NSP in case of zombie process.
856856 * References:
857- * - lsof source code: http ://goo.gl/SYW79 and http://goo.gl/wNrC0
857+ * - lsof source code: https ://github.com/apple-opensource/lsof/blob/28/lsof/dialects/darwin/libproc/dproc.c#L342
858858 * - /usr/include/sys/proc_info.h
859859 */
860860PyObject *
You can’t perform that action at this time.
0 commit comments