|
@@ -74,8 +74,8 @@ class Root(NilmApp): |
|
|
dbsize = nilmdb.utils.du(path) |
|
|
dbsize = nilmdb.utils.du(path) |
|
|
return { "path": path, |
|
|
return { "path": path, |
|
|
"size": dbsize, |
|
|
"size": dbsize, |
|
|
"other": usage.used - dbsize, |
|
|
|
|
|
"reserved": usage.total - usage.used - usage.free, |
|
|
|
|
|
|
|
|
"other": max(usage.used - dbsize, 0), |
|
|
|
|
|
"reserved": max(usage.total - usage.used - usage.free, 0), |
|
|
"free": usage.free } |
|
|
"free": usage.free } |
|
|
|
|
|
|
|
|
class Stream(NilmApp): |
|
|
class Stream(NilmApp): |
|
|