mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
- controlapi/statfs: remove unneccessary array from xml/json
This commit is contained in:
@@ -3210,7 +3210,7 @@ void CControlAPI::FileCGI(CyhookHandler *hh) {
|
|||||||
* @code
|
* @code
|
||||||
* {"success": "true", "data":
|
* {"success": "true", "data":
|
||||||
* {
|
* {
|
||||||
* "statfs": [{
|
* "statfs": {
|
||||||
* "path": "/media/sda1/movies",
|
* "path": "/media/sda1/movies",
|
||||||
* "f_type": "0x4d44",
|
* "f_type": "0x4d44",
|
||||||
* "f_bsize": "4096",
|
* "f_bsize": "4096",
|
||||||
@@ -3222,7 +3222,7 @@ void CControlAPI::FileCGI(CyhookHandler *hh) {
|
|||||||
* "f_fsid": "0x801, 0",
|
* "f_fsid": "0x801, 0",
|
||||||
* "f_namelen": "1530",
|
* "f_namelen": "1530",
|
||||||
* "f_frsize": "24"
|
* "f_frsize": "24"
|
||||||
* }]
|
* }
|
||||||
* }}
|
* }}
|
||||||
* @endcode
|
* @endcode
|
||||||
*/
|
*/
|
||||||
@@ -3252,8 +3252,7 @@ void CControlAPI::StatfsCGI(CyhookHandler *hh) {
|
|||||||
item += hh->outPair("f_namelen", string_printf("%lu", (unsigned long) s.f_namelen), true);
|
item += hh->outPair("f_namelen", string_printf("%lu", (unsigned long) s.f_namelen), true);
|
||||||
item += hh->outPair("f_frsize", string_printf("%lu", (unsigned long) s.f_frsize), false);
|
item += hh->outPair("f_frsize", string_printf("%lu", (unsigned long) s.f_frsize), false);
|
||||||
|
|
||||||
result = hh->outArrayItem("path", item, false);
|
result = hh->outCollection("statfs", item);
|
||||||
result = hh->outArray("statfs", result);
|
|
||||||
|
|
||||||
hh->SendResult(result);
|
hh->SendResult(result);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user