File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -815,7 +815,7 @@ def bcat(fname, fallback=_DEFAULT):
815
815
816
816
817
817
def 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 .
819
819
820
820
>>> bytes2human(10000)
821
821
'9.8K'
Original file line number Diff line number Diff line change @@ -1984,7 +1984,7 @@ def memory_full_info(self):
1984
1984
def memory_maps (self ):
1985
1985
"""Return process's mapped memory regions as a list of named
1986
1986
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 .
1988
1988
1989
1989
/proc/{PID}/smaps does not exist on kernels < 2.6.14 or if
1990
1990
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):
537
537
# /proc/PID/path/cwd may not be resolved by readlink() even if
538
538
# it exists (ls shows it). If that's the case and the process
539
539
# 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
541
541
procfs_path = self ._procfs_path
542
542
try :
543
543
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) {
763
763
/*
764
764
* Return process open files as a Python tuple.
765
765
* 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
767
767
* - /usr/include/sys/proc_info.h
768
768
*/
769
769
PyObject *
@@ -854,7 +854,7 @@ psutil_proc_open_files(PyObject *self, PyObject *args) {
854
854
* Return process TCP and UDP connections as a list of tuples.
855
855
* Raises NSP in case of zombie process.
856
856
* 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
858
858
* - /usr/include/sys/proc_info.h
859
859
*/
860
860
PyObject *
You can’t perform that action at this time.
0 commit comments