Skip to content

Commit

Permalink
1.5.3: fixed -0B delta caused by float casting
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrix25633 committed Aug 22, 2022
1 parent 1abe7fa commit b59a9c5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.RECIPEPREFIX=>
VERSION=1.5.2
VERSION=1.5.3

default:
> clear
Expand Down
4 changes: 2 additions & 2 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
public class Program {
static void Main(string[] args) {
// Version
string version = "1.5.2";
string version = "1.5.3";
// Lists
string[] sourceList = new string[0], destinationList = new string[0], extensionList = new string[0];
DirectoryEntry[] sourceInfoList = new DirectoryEntry[0], destinationInfoList = new DirectoryEntry[0],
Expand Down Expand Up @@ -337,7 +337,7 @@ static void Main(string[] args) {
filesCopied.ToString() + " file" + (filesCopied == 1 ? "" : "s") + " copied (" + Logger.HumanReadableSize(sizeCopied) +
"), " + foldersRemoved.ToString() + " folder" + (foldersRemoved == 1 ? "" : "s") + " and " +
filesRemoved.ToString() + " file" + (filesRemoved == 1 ? "" : "s") + " removed (" + Logger.HumanReadableSize(sizeRemoved) +
"), delta: " + (sizeCopied >= sizeRemoved ? "+" : "-") + Logger.HumanReadableSize((UInt64)Math.Abs((float)(sizeCopied - sizeRemoved))));
"), delta: " + (sizeCopied >= sizeRemoved ? "+" : "-") + Logger.HumanReadableSize((UInt64)Math.Abs((Int64)sizeCopied - (Int64)sizeRemoved)));
// Compressed backup
if(arguments.backup) {
string backupFileName = Logger.LongTimeString() + ".zip";
Expand Down
2 changes: 1 addition & 1 deletion transfer/local/options.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
VERSION=1.5.2
VERSION=1.5.3
DEBUG=0
RELEASE=1

0 comments on commit b59a9c5

Please sign in to comment.