Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fs usage: don't overwrite size (Fix #243) #245

Merged
merged 1 commit into from Aug 24, 2020
Merged

Conversation

joshmoore
Copy link
Member

see #243

  File "/tmp/omero/lib/python3.7/site-packages/omero/plugins/fs.py", line 945, in _usage_report
    if args.report and not args.size_only and size > 0:
TypeError: '>' not supported between instances of 'str' and 'int'

Copy link
Member

@manics manics left a comment

Choose a reason for hiding this comment

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

$ omero fs usage --human-readable --report
Using session for root@localhost:4064. Idle timeout: 10 min. Current group: system
Total disk usage: 380.0 KB bytes in 75 files
 user | group | component    |     size | files
------+-------+--------------+----------+-------
 0    | 1     | OriginalFile | 370.1 KB |    57
 0    | 0     | OriginalFile |   9.9 KB |    18
(2 rows)

$ omero fs usage --report
Using session for root@localhost:4064. Idle timeout: 10 min. Current group: system
Total disk usage: 389153 bytes in 75 files
 user | group | component    | size (bytes) | files
------+-------+--------------+--------------+-------
 0    | 1     | OriginalFile |       379024 |    57
 0    | 0     | OriginalFile |        10129 |    18
(2 rows)

$ omero fs usage
Using session for root@localhost:4064. Idle timeout: 10 min. Current group: system
Total disk usage: 389153 bytes in 75 files

$ omero fs usage --human-readable
Using session for root@localhost:4064. Idle timeout: 10 min. Current group: system
Total disk usage: 380.0 KB bytes in 75 files

@manics manics merged commit b1a627e into ome:master Aug 24, 2020
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.

None yet

2 participants