Skip to content

Conversation

@junhaoliao
Copy link
Owner

No description provided.

};

export const sftp_quota = (fm, cwd, ms) => {
fm.setState({
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we might want to load silently because not all targets have a quota / support quota checking

used: parseInt(mem[0]),
usedUnit: mem[0].replace(/[0-9]+/, ''),
quota: parseInt(mem[1]),
quotaUnit: mem[1].replace(/[0-9]+/, ''),
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parse the quota unit as well: the number is usually in 'human readable size' format so the 'quota' unit might not always be the same as the 'used' unit

quotaUnit: mem[1].replace(/[0-9]+/, ''),
});
}).catch(error => {
fm.loadDir(cwd)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we might want to handle this silently because not all targets have a quota / support quota checking

@KevinHaoranZhang KevinHaoranZhang merged commit f566055 into ictrl Jul 22, 2021
IreneLime pushed a commit to IreneLime/iCtrl that referenced this pull request Nov 13, 2024
Add initial logic to log upload mechanism and verification system.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants