Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
N
node-bigstream
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bs
node-bigstream
Commits
b335b28b
Commit
b335b28b
authored
May 31, 2017
by
project
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
3c677d8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
service-storage.js
storage-service/ws/v0.1/service-storage.js
+3
-1
No files found.
storage-service/ws/v0.1/service-storage.js
View file @
b335b28b
...
@@ -28,12 +28,14 @@ router.get('/:id/stats',function (req, res) {
...
@@ -28,12 +28,14 @@ router.get('/:id/stats',function (req, res) {
fs
.
exists
(
bss_full_path
,
function
(
exists
){
fs
.
exists
(
bss_full_path
,
function
(
exists
){
if
(
exists
){
if
(
exists
){
var
fstat
=
stats
=
fs
.
statSync
(
bss_full_path
);
BinStream
.
open
(
bss_full_path
,
function
(
err
,
bss
){
BinStream
.
open
(
bss_full_path
,
function
(
err
,
bss
){
var
rd
=
bss
.
reader
();
var
rd
=
bss
.
reader
();
var
obj_stat
=
{
var
obj_stat
=
{
"storagename"
:
sid
,
"storagename"
:
sid
,
"count"
:
rd
.
count
(),
"count"
:
rd
.
count
(),
"filename"
:
storage_path
+
".bss"
"filename"
:
storage_path
+
".bss"
,
"filesize"
:
fstat
.
size
}
}
bss
.
close
(
function
(
err
){
bss
.
close
(
function
(
err
){
respHelper
.
responseOK
(
obj_stat
);
respHelper
.
responseOK
(
obj_stat
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment