linux_stat 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/sysconf/sysconf.c +9 -9
- data/lib/linux_stat/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2b9ce6001721fb53594609195cab131b1012257ecc8ec8705d80bbfad10e930
|
4
|
+
data.tar.gz: 0aeb2d9b11d871ffd82cd48ee8ca08b94620db5fd6e59c1d2b450c906b7da589
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d0f539696f3b58aa068c97636517c3f813b3359e8f45ac4a7f08f642d2c3478be5ca8998f2a293919b703900f3e5a8ea7a7b57b72ee0f58e2c6d783760c30cb
|
7
|
+
data.tar.gz: 769195f4ea410fb4a856344632cd5fd0f191d40e3fb022ce0868c31723cdb203797c20357b9c022e1bb3e21f6c33b3a3275a852ed8abf78dc1cf7b6b1b9c6d80
|
data/ext/sysconf/sysconf.c
CHANGED
@@ -19,28 +19,28 @@ static VALUE getTick(VALUE obj) {
|
|
19
19
|
}
|
20
20
|
|
21
21
|
static VALUE getChildMax(VALUE obj) {
|
22
|
-
|
22
|
+
long long int val = sysconf(_SC_CHILD_MAX) ;
|
23
23
|
if (val < 0) return Qnil ;
|
24
24
|
|
25
25
|
return INT2FIX(val) ;
|
26
26
|
}
|
27
27
|
|
28
28
|
static VALUE getHostnameMax(VALUE obj) {
|
29
|
-
|
29
|
+
int val = sysconf(_SC_HOST_NAME_MAX) ;
|
30
30
|
if (val < 0) return Qnil ;
|
31
31
|
|
32
32
|
return INT2FIX(val) ;
|
33
33
|
}
|
34
34
|
|
35
35
|
static VALUE getLoginNameMax(VALUE obj) {
|
36
|
-
|
36
|
+
int val = sysconf(_SC_LOGIN_NAME_MAX) ;
|
37
37
|
if (val < 0) return Qnil ;
|
38
38
|
|
39
39
|
return INT2FIX(val) ;
|
40
40
|
}
|
41
41
|
|
42
42
|
static VALUE getOpenMax(VALUE obj) {
|
43
|
-
|
43
|
+
int val = sysconf(_SC_OPEN_MAX) ;
|
44
44
|
if (val < 0) return Qnil ;
|
45
45
|
|
46
46
|
return INT2FIX(val) ;
|
@@ -54,35 +54,35 @@ static VALUE getPageSize(VALUE obj) {
|
|
54
54
|
}
|
55
55
|
|
56
56
|
static VALUE getStreamMax(VALUE obj) {
|
57
|
-
|
57
|
+
int val = sysconf(_SC_STREAM_MAX) ;
|
58
58
|
if (val < 0) return Qnil ;
|
59
59
|
|
60
60
|
return INT2FIX(val) ;
|
61
61
|
}
|
62
62
|
|
63
63
|
static VALUE getTTYNameMax(VALUE obj) {
|
64
|
-
|
64
|
+
int val = sysconf(_SC_TTY_NAME_MAX) ;
|
65
65
|
if (val < 0) return Qnil ;
|
66
66
|
|
67
67
|
return INT2FIX(val) ;
|
68
68
|
}
|
69
69
|
|
70
70
|
static VALUE getPosixVersion(VALUE obj) {
|
71
|
-
|
71
|
+
int val = sysconf(_SC_VERSION) ;
|
72
72
|
if (val < 0) return Qnil ;
|
73
73
|
|
74
74
|
return INT2FIX(val) ;
|
75
75
|
}
|
76
76
|
|
77
77
|
static VALUE getLineMax(VALUE obj) {
|
78
|
-
|
78
|
+
int val = sysconf(_SC_LINE_MAX) ;
|
79
79
|
if (val < 0) return Qnil ;
|
80
80
|
|
81
81
|
return INT2FIX(val) ;
|
82
82
|
}
|
83
83
|
|
84
84
|
static VALUE getExprNestMax(VALUE obj) {
|
85
|
-
|
85
|
+
int val = sysconf(_SC_EXPR_NEST_MAX) ;
|
86
86
|
if (val < 0) return Qnil ;
|
87
87
|
|
88
88
|
return INT2FIX(val) ;
|
data/lib/linux_stat/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linux_stat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sourav Goswami
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Linux only, efficient linux system utilization reporting and system monitoring
|
14
14
|
gem
|
@@ -18,9 +18,9 @@ executables:
|
|
18
18
|
- linuxstat.rb
|
19
19
|
extensions:
|
20
20
|
- ext/fs_stat/extconf.rb
|
21
|
+
- ext/nproc/extconf.rb
|
21
22
|
- ext/sysconf/extconf.rb
|
22
23
|
- ext/utsname/extconf.rb
|
23
|
-
- ext/nproc/extconf.rb
|
24
24
|
extra_rdoc_files:
|
25
25
|
- README.md
|
26
26
|
files:
|