Ticket #15528

コマンド圧縮時の圧縮率表示不正

Open Date: 2009-03-15 00:14 Last Update: 2009-03-18 23:08

Reporter:
Owner:
(None)
Type:
Status:
Closed
Component:
(None)
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
None

Details

コマンドで圧縮を実行すると、圧縮サイズの箇所に常に-9223372036854775808(この値はLong.MIN_VALUEと等しい)が表示される。

$ arm cvf test.zip README
appending  README 100% (-9223372036854775808 => -9223372036854775808)
finished.
$

Ticket History (3/5 Histories)

2009-03-15 00:14 Updated by: argius
  • New Ticket "コマンド圧縮時の圧縮率表示不正" created
2009-03-15 13:18 Updated by: argius
  • Milestone Update from (None) to 0.2.0 (closed)
  • Ticket Close date is changed to 2009-03-15 13:18
  • Status Update from Open to Closed
  • Resolution Update from None to Fixed
Comment

エントリ追加後に、サイズと圧縮サイズ、エントリ追加済かどうかを設定していなかったので、設定するようにした。 同時に、割合が1/100になっていたのを修正、など。

2009-03-18 15:06 Updated by: argius
  • Resolution Update from Fixed to Invalid
Comment

ファイルサイズがゼロの場合の考慮漏れ。(FileArchiver revision=8)

Exception in thread "main" java.lang.ArithmeticException: / by zero
        at jp.sourceforge.armadillo.FileArchiver.archive(FileArchiver.java:121)

2009-03-18 15:06 Updated by: argius
  • Status Update from Closed to Open
2009-03-18 23:08 Updated by: argius
  • Ticket Close date is changed to 2009-03-18 23:08
  • Status Update from Open to Closed
  • Resolution Update from Invalid to Fixed
Comment

ファイルサイズがゼロの場合を含めてロジックを整理。

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login