Skip to content

Commit

Permalink
Merge pull request #68 from doubleface/fix/storage-1024
Browse files Browse the repository at this point in the history
fix: now storage value are in 1024 base
  • Loading branch information
CPatchane authored Jun 23, 2017
2 parents ed1b817 + 38c3af1 commit 2c7deb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Storage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
computed: {
diskQuota: diskQuotaFromStack => {
if (Number.isInteger(diskQuotaFromStack)) {
return (diskQuotaFromStack/1000000000).toFixed(2)
return (diskQuotaFromStack/(1024*1024*1024)).toFixed(2)
}
return diskQuotaFromStack
},
diskUsage: diskUsageFromStack => {
if (Number.isInteger(diskUsageFromStack)) {
return (diskUsageFromStack/1000000000).toFixed(2)
return (diskUsageFromStack/(1024*1024*1024)).toFixed(2)
}
return diskUsageFromStack
}
Expand Down

0 comments on commit 2c7deb4

Please sign in to comment.