From 7efbdb52f6037a72e6b96abe7361ad8be453008e Mon Sep 17 00:00:00 2001 From: Frank Karlitschek Date: Thu, 4 Oct 2012 12:58:57 +0200 Subject: donĀ“t show negative numbers. this is only a quickfix. I still dont get why the Shared folder can be bigger than the root folder. Perhaps a inconsitency in the filecache? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings/personal.php | 1 + 1 file changed, 1 insertion(+) diff --git a/settings/personal.php b/settings/personal.php index 4f92985c797..9297f5d91cc 100644 --- a/settings/personal.php +++ b/settings/personal.php @@ -24,6 +24,7 @@ if (!isset($sharedInfo['size'])) { $sharedSize = $sharedInfo['size']; } $used=$rootInfo['size']-$sharedSize; +if($used<0) $used=0; $free=OC_Filesystem::free_space(); $total=$free+$used; if($total==0) $total=1; // prevent division by zero -- cgit v1.2.3 rty/justinrainbow/json-schema'>3rdparty/justinrainbow/json-schema Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
summaryrefslogtreecommitdiffstats
path: root/AUTHORS
blob: 7f919d4a2ad42608752e3ae3850e0b61627d9cec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202